Notifications
Clear all
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:
- 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?
- Which of the following is true for variable names in Python?
- Why are local variable names beginning with an underscore discouraged?
Posted : 19/03/2023 3:18 pm
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