SHARE
TWEET

[Day 3] Reversed Number

endzie_fyrge Jun 25th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. number = input("Enter a four digit number: ")
  2.  
  3. reversed_number = int(number[3] + number[2] + number[1] + number[0])
  4.  
  5. print(f"Your reversed number is {reversed_number}")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top