Why this dont work?
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: object of type 'int' has no len()
Because console.write() takes a str (string), and x is an integer.
Log in to post a comment.