7

Why is the second statement a syntax error, while the first is not?

>>> [] = ()
>>> () = []
  File "<stdin>", line 1
SyntaxError: can't assign to ()
planetp
  • 14,248
  • 20
  • 86
  • 160

0 Answers0