a = input()
print(a[::-1])
Код:
number = input("Please put your number: ")
print('This is reverse number: ' + number[::-1])
Робота Ісходніка:
>>> Please put your number: 123
>>> This is reverse number: 321
a = input()
print(a[::-1])
Код:
number = input("Please put your number: ")
print('This is reverse number: ' + number[::-1])
Робота Ісходніка:
>>> Please put your number: 123
>>> This is reverse number: 321