Solution

a=int(input("Enter a number:"))
tens=(a%100)//10
hundreds=(a%1000)//100
a=(a-tens*10)-hundreds*100
a=a+tens*100+hundreds*10
print(a)
Topic revision: r1 - 2019-09-10 - JimSkon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback