Programming Examples
Python program that receives the index and return the corresponding value
write a python program that receives the index and return the corresponding value
Solutiont1=(45,3,2,3,5,6,9,3,2)
ind=int(input("Enter any Index : "))
print("Value at ",ind," index is ",t1[ind])
▶ RUN Output/ Explanation: Enter any Index : 4
Value at 4 index is 5