SHARE
TWEET

Nth digit (functions/book)

simeonshopov Nov 14th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def find_nth_digit(number, index):
  2.   number = str(number)[::-1]
  3.   print(number[index - 1])
  4.  
  5. number = int(input())
  6. index = int(input())
  7.  
  8. find_nth_digit(number, index)
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