Print the value of variable by entering the index position in python list
View All Python Programs Source Code n=int(input(“Enter the position : “)) thislist=[“apple”,”banana”,”cherry”] print(thislist[n-1]) Output Enter the position : 3 cherry View All Python Programs
Print the value of variable by entering the index position in python list Read More »