Computer Science, asked by ml7000126243, 6 months ago

which one is invalid identifier between s. i or coustumername or student3 or interest​

Answers

Answered by Anonymous
3

Answer:

i) 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
Math, 11 months ago