def to_turn1(b):
a=0
for i in range(0,len(b)):
a+=((int(b)//(1 if i==0 else (10**i)))%(10))*(10**(len(b)-(i+1)))
print(a)
return a
def to_turn2(t):
e = list(str(t))
for i in range(len(e)//2):
e[i],e[(i+1)*-1]=e[(i+1)*-1],e[i]
print((''.join(e)))
return (''.join(e))
def to_turn1(b):
a=0
for i in range(0,len(b)):
a+=((int(b)//(1 if i==0 else (10**i)))%(10))*(10**(len(b)-(i+1)))
print(a)
return a
def to_turn2(t):
e = list(str(t))
for i in range(len(e)//2):
e[i],e[(i+1)*-1]=e[(i+1)*-1],e[i]
print((''.join(e)))
return (''.join(e))