Computer Science, asked by ashakhannapawan, 9 hours ago

5. Write the output of the following: a) num1 num1 = 4 num2 = num1 + 1 num1 2 print (numi, num2) b) numl, num2 2, 6 numl, num2 num2, numl + 2 print (numi, num2) c) num1, num2 2, 3 num3, num2 print (numl, num2, num3) - numi, num3 + 1​

Answers

Answered by IxIitzurshizukaIxI
15

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
Math, 4 hours ago