I am unable to change the name of my Knight; however I am able to change the armour and weapon. I am very new to python so please bear with me, when I enter a new name try again comes up. Thank you,
def update_data(knights, weapon, armour):
print("What would you like to update ?")
print("1: Knights name: " + knights[0])
print("2: Weapon: " + weapon[0])
print("3: Armour: " + armour[0])
try:
selection = int(input("Select your Option: "))
if selection == 1:
knights[0] = str(input("what is their new name ? " + knights[0]))
print("Your Knights new name is: " + knights[0])
elif selection == 2:
weapon[0] = str(input("What is their new weapon ? " + weapon[0]))
print("They are now armed with: " + weapon[0])
elif selection == 3:
armour[0] = str(input("What new armour shall they wear ? " + armour[0]))
print("They are now wearing: " + armour[0])
except:
print("---Try Again---")
update_data(knights, weapon, armour)