Write a python program that receives the index and returns the corresponding
value.
Answers
Answered by
0
HERE IS YOUR ANSWER
a=[1,2,3,4,5,6,7,8,9,10]# list declaration and initialization. print("Enter the location of 0 to 9 because the list holds only 10 value")# instruction for the user. x=int(input()) # user location or index inputs. print(a[x]) # print the value of the user input location.
MARK ME AS BRAINLIEST, IF IT HELPS
Similar questions