Something's wrong

Report a typo

You learn Python with your friend and regularly create challenges for each other to solve. This time your friend asked you to correct his code. Find what is wrong with the code, correct it, and run!

Note there may be several errors in the code snippet.

Sample Input 1:

0

Sample Output 1:

True
Write a program in Python 3
number = input()
bytes_number = number.to_bytes(5, byteorder=little)
number_from_bytes = int.from_bytes(bytes_number, 'big')
print(bytes_number == number_from_bytes) # <-- expected to be True!
___

Create a free account to access the full topic