Saved Bookmarks
| 1. |
TOPIC=PYTHON--------------------------------------------------------------------------------------------------------------------------Write a program to take a 2 digit number and then print the reversed number.That is,if the input given is 25,print 52. |
|
Answer» Answer: temp = n[::-1] print(temp) Explanation: This will work for any number of digits. if you want you can use n.numeric() to CONFIRM user only enters numbers. |
|