Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...
mycontacts=["Moose", "Foggypan", "Joe", "Freddie", "Frog", "Jan", "Jonathan"]
userinput =input("Enter a Contact Number:")
Contact1 == [mycontacts[0]]
Contact2 == [mycontacts[1]]
Contact3 == [mycontacts[2]]
if userinput == 1:
print(Contact1)
else:
if userinput == 2:
print(Contact2)
else:
if userinput == 3:
print(Contact3)
print(mycontacts[0])