Question #946

What is the output of the code snippet below?
x = 2
x *= x *= x
print(x)

In Python, assignments cannot be chained. (python-reference.readthedocs.io/en/latest/docs/operators/...)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: