Computer Science, asked by anirudhdesai068, 3 months ago

14%3+7%2 is valid or invalid ? explain with answer​

Answers

Answered by abidrizvi5110
1

Which of the following identifier names are invalid and why?

i

Serial_no.

v

Total_Marks

ii

1st_Room

vi

total-Marks

iii

Hundred$

vii

_Percentage

iv

Total Marks

viii

True

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.

Answered by khushisingh8583
1

Answer:

14 \ 100 x 3 + 7 \100 x 2

7 \ 50 x 3 + 7 \ 50

21 \ 50 + 7 \ 50

21 + 7 \ 50

28 \ 50

0.56

Explanation:

this is your answer

Similar questions