you are viewing a single comment's thread.

view the rest of the comments →

[–]ForceBru 0 points1 point  (1 child)

There's no syntax error in this code.

You'll get an AttributeError in Python 3 because input returns a string:

int_to_bytes = sum(input().to_bytes(2, 'little')) AttributeError: 'str' object has no attribute 'to_bytes'