KnowledgeBoat Logo
|

Informatics Practices

Which of the following is an invalid statement?

  1. a=b=c=20
  2. a,b,c=10,20,30
  3. abc = 20 30 40
  4. abc=20

Python Funda

2 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

1 Like


Related Questions