Which of the follow...
 
Notifications
Clear all

Which of the following is an invalid statement in Python?

2 Posts
1 Users
0 Likes
84 Views
Fahad
(@fahad)
Posts: 412
Prominent Member
Topic starter
 

Question: Which of the following is an invalid statement in Python?

 

Options are:

 

a). abc = 1,000,000
b). a b c = 1000 2000 3000
c). a,b,c = 1000, 2000, 3000
d). a_b_c = 1,000,000

 

 

Correct answer 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. Which of the following is true for variable names in Python?
  7. Why are local variable names beginning with an underscore discouraged?
 
Posted : 19/03/2023 3:18 pm
Fahad
(@fahad)
Posts: 412
Prominent Member
Topic starter
 

Correct answer is:

 

b). a b c = 1000 2000 3000

 

Explanation: Spaces are not allowed in variable names.

 
Posted : 19/03/2023 3:18 pm
Share:
Scroll to Top