I have some code and i want to go back into a certain line however i am not sure how i can achive such things.
#SnakeFactBook v.1
#Here is the begining of the book
print("Hello.\nWelcome to the Bush Viper Fact Book.")
#Ask for name
name = input("What is your name?")
print("Ok, why hello,",name)
#Tells you what this is
print("There are six pages to the book.",name)
print("Which one would you like to choose?")
print("Page 1=1 ")
print("Page 2= 2")
print("Page 3= 3")
print("Page 4= 4")
print("Page 5= 5")
print("Page 6= 6")
#Asks you for the page choice
pagechoice = input("Please choose one:")
#Now it will determine which page you choose.
if pagechoice == '1':
print(""" This is page one """)
elif pagechoice == '2':
print(""" This is page two """)
elif pagechoice == '3':
print(""" This is page three """)
elif pagechoice == '4':
print(""" This is page four """)
elif pagechoice == '5':
print(""" This is page five """)
elif pagechoice == '6':
print(""" This is page six """)
else:
print("Sorry, but what you have typed in is invalid,\nPlease try again.")
Just saying i am a noob at python so please don't spam.