Informatics Practices
Which of the following is an invalid statement?
- a=b=c=20
- a,b,c=10,20,30
- abc = 20 30 40
- abc=20
Python Funda
3 Likes
Answer
abc = 20 30 40
Reason — In Python, the statement abc = 20 30 40 is invalid because it attempts to assign multiple values (20, 30, and 40) to a single variable (abc) in a single assignment statement.
Answered By
3 Likes
Related Questions
What can be the maximum possible length of an identifier?
- 31
- 63
- 79
- Can be of any length
Which of the following operators is floor division?
+///>
What is the result of this statement:
10>5 and 7>12 or not 18>3- 10
- True
- False
- None
What will be the output of the following Python code?
>>> 6*3+4**2//5-8- 13
- 14
- Error
- None