Answer to Question #264551 in Python for swsq

Question #264551

Write a program to reverse an integer


1
Expert's answer
2021-11-11T17:35:08-0500

Source code

num=int(input("Enter an integer: "))
s_num=str(num)
print("Original integer: ",num)
print("Reversed integer: ",s_num[::-1])

Output




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS