Which of the following cannot be a variable in python?
(а) IN
(b) Name.student
(c) FOR
(d) False
Answers
Answered by
11
(b) Name.student and (d) False cannot be variables in Python.
Variables, or to be more specific, identifiers, are names given to identify a value/function/for storing values, etc.
- An identifier should have no special characters [except an underscore(_)] in them.
Name.student has a special character [a fullstop] in it, and hence cannot be called an identifier.
- An identifier shouldn't be a keyword either.
Keywords in Python are reserved words used for a specific function/purpose.
False is a Boolean value, and cannot be used as an identifier.
Equestriadash:
Thanks for the Brainliest! ^_^"
Similar questions
Math,
1 month ago
English,
1 month ago
India Languages,
1 month ago
Math,
2 months ago
Chemistry,
8 months ago