Hi I have an assignment due about a code on superheroes and i'm new to coding we haven't even started GCSE level yet...
Heroes = ["Batman","Wonder Woman","Superman","Spiderman"]
print(Heroes)
print("Current pilot: ",Heroes[0])
print("Co-pilot:",Heroes[1])
print ( Heroes[2],"has been temporarily replaced by Hit Girl")
Heroes[2]="Hit Girl"
print("Current heroes are now:")
print(Heroes)
print("There are two new superheroes")
print("Current heroes are now:")
Heroes.append("The Scarlet Witch")
Heroes.append("Valkryie")
print(Heroes)
Answer = None
while Answer not in ("Yes", "No"):
    Answer = input("Would you like to change a Hero? ")
    if Answer==("Yes"):
       Number=int(input("Choose a Hero from 0-5"))
       print("You will replace Hero:",Number)
       Name=str(input("Enter Hero name:"))
       print("New Hero name is:",Name)
       Heroes[Number]=Name
       print(Heroes)
    elif Answer==("No"):
        print("Ok this is the final list of Heroes")
        print(Heroes)
    else:
        print("That isn't a Yes or No answer...")
I would really like to know on how to go back to the "Yes" section when I have finished that section and to still have a "Yes" and "No" to end the script.
Sorry if it is a lot to ask help on...
 
     
    