Given a number from 1 to 26, I'm trying to return an alphabet in the corresponding position from a list.
Example:
Input = 1
Output = 'a'
I have tried the following:
user_input = int(input("Enter a number from 1 to 26 "))
for item in aplhabet:
print(aplhabet.index(item[aplhabet]))
As expected that returns a type error because there are no integer values in my list.
What can I do to return an element from my list in which its position is equal to the users number input?