Which of the follow...
 
Notifications
Clear all

Which of the following is true for variable names in Python?

2 Posts
1 Users
0 Likes
89 Views
Fahad
(@fahad)
Posts: 412
Prominent Member
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:

 

  1. All keywords in Python are in?
  2. Which of the following is not a keyword in python?
  3. Which of the following is an invalid variable in Python?
  4. What is the maximum possible length of an identifier?
  5. Is Python case sensitive when dealing with identifiers?
  6. Why are local variable names beginning with an underscore discouraged?
 
Posted : 19/03/2023 2:28 pm
Fahad
(@fahad)
Posts: 412
Prominent Member
Topic starter
 

Correct option is:

 

a). unlimited length

 

Explanation: Variable names can be of any length.

 
Posted : 19/03/2023 2:30 pm
Share:
Scroll to Top