Computer Science, asked by dishdhauma, 1 year ago


Out of the following, find those identifiers, which cannot be used for naming Variables or Functions in a
Python program :
Price*Qty, class, For, do,
4thCol, totally, Row31, Amount

plzz reply me fast...plzz​

Attachments:

Answers

Answered by LuckyYadav2578
22
● class can not be used as Identifier because class is a keyword

● Identifier - Identifier is a valid set of characters which represent certain value which are also known as variables.

▪ There is no limit of identifier in python.

▪ Identifier name must start with an alphabet or underscore ( _ ).

▪ identifier name can not have any blank space.

▪ variable ( Identifier ) name can not have any special character except alphabet, digits and underscore.

● Keywords - keywords are the reserved word which conveys special meaning to the compiler.

▪ There are 33 keyword in python.

▪ All the keywords except True, False and None are in lowercase.

note : For is not a keyword because it's first digit is in uppercase.

Answered by varun000
33

hope it helps you dear ...

if you find it helpful plz mark it as brainliest

Attachments:
Similar questions