Using the knowledge of computational language in python it is possible to write a code that given a list of 10 names, complete the program that outputs the name specified by the list index entered by the user.
names = ['Ryley', 'Edan', 'Reagan', 'Henry', 'Caius', 'Jane', 'Guto', 'Sonya', 'Tyrese', 'Johnny']
index = int(input())
try:
print('Name:', names[index])
except IndexError:
print('Exception! list index out of range')
print('The closest name is :', names[0] if index < 0 else names[-1])
See more about python at brainly.com/question/18502436
#SPJ1