Computer Science, asked by aakash4767, 1 month ago

16 Pick out the invalid identifier from the following and give reason ( _num1 , num_1, num 1, num1)

Answers

Answered by sunilvermachapra2
0

Answer:

Serial_no.: Invalid - Identifier in python cannot contain any special character except underscore(_).

ii) 1st_Room: Invalid - Identifier in Python cannot start with a number.

iii) Hundred$: Invalid - Identifier in Python cannot contain any special character except underscore(_).

iv) Total Marks: Invalid - Identifier in Python cannot contain any special character except underscore(_). If more than one word is used as a variable then it can be separated using underscore ( _ ), instead of space.

v) Total_Marks: Valid

vi) total-Marks: Invalid - Identifier in Python cannot contain any special character except underscore(_). If more than one word is used as a variable then it can be separated using underscore ( _ ), instead of a hyphen ( - ).

vii) _Percentage: Valid

viii) True: Invalid - Identifier in Python should not be a reserved keyword

Similar questions