Classify the following as identifiers and keywords
(i)False (ii)continue (iii)_chk (iv)data_record
Answers
Answered by
1
- (i) False - keyword
- (ii) continue - keyword
- (iii) _chk - identifier
- (iv) data_record - identifier
- A Python identifier is a name used to identify a variable, function, class, module or other object. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9). ... All other identifiers start with a lowercase letter.
- Keywords are the reserved words in Python. We cannot use a keyword as a variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language. In Python, keywords are case sensitive.
Answered by
3
Answer:
i) and ii) are keywords
And rest are identifiers
Similar questions