Ad
Code
Diff
  • def flip_the_number(num):
        return num[::-1]
    • def flip_the_number(number):
    • number = list(number)
    • print(number)
    • num = []
    • for i in range(len(number)):
    • lenth = len(number)
    • num.append(str(number[lenth-1-i]))
    • print(num)
    • join = ""
    • return join.join(num)
    • def flip_the_number(num):
    • return num[::-1]