X = [1,4,5,10,23,2,5,7,19]
I want to know the digit Nth of the list...
Example:
def func(n):
print(nth digit of X)
def func(7):
print(7th digit of X)
Output = 3
Don't need to be a function...just the method to reach to solution of the problem: function returns nth digit of a list