Notifications
Clear all
Topic starter
Question: Which of the following is true for variable names in Python?
Options are:
a). unlimited length
b). all private members must have leading and trailing underscores
c). underscore and ampersand are the only two special characters allowed
d). none of the mentioned
correct option is in reply
Also read:
- All keywords in Python are in?
- Which of the following is not a keyword in python?
- Which of the following is an invalid variable in Python?
- What is the maximum possible length of an identifier?
- Is Python case sensitive when dealing with identifiers?
- Why are local variable names beginning with an underscore discouraged?
Posted : 19/03/2023 2:28 pm
Topic starter
Correct option is:
a). unlimited length
Explanation: Variable names can be of any length.
Posted : 19/03/2023 2:30 pm