I am fairly new to python, i have created this code for a controlled assessment but it is suggesting that 'q11' (the first of the web opening commands) is not defined. It is the same as the others and was working fine before but now i have begun work on it again but it just won't work.
Thank you in advance
Here is my code:
import webbrowser
import random
sol1 = ("Check if there is lint in the charging ports. This can be removed carefully with a toothpick or similar implement")
sol2 = ("Turn on assistive touch if you have an iphone (settings > general > accessability > assistive touch until you go to a shop to get them replaced. If you use android, download 'button savior' from the google play store")
sol3 = ("Do a hard reset - hold down the power and home buttons until the screen turns off and keep them held down until the screen turns on again ")
sol4 = ("Restore the phone to factory settings and set it up as new")
sol5 = ("You need a screen replacement.")
sol6 = ("You may need to replace the battery.")
sol7 = ("You dont need to do anything. Your phone doesnt have any problems.")
sol8 = ("Please update your phone software.")
sol9 = ("Contact apple for support")
sol10 = ("Take the phone and put it in a bag of rice for 24-36 hours to let the rice absorb the water.")
q1=input("Is your phone charging correctly? ")
if q1 == "no":
print(sol1)
if q1 == "yes":
q2=input("Is your phone water damaged? ")
if q2 == "yes":
print(sol10)
if q2 == "no":
q3=input("Is the screen cracked or badly scratched? ")
if q3 == "yes":
print(sol5)
if q3 == "no":
q4=input("Is the phone working slowly and crashing? ")
if q4 == "yes":
print(sol3)
if q4 == "no":
q5=input("Do you wish to remove data from the phone? ")
if q5 == "yes":
print(sol4)
if q5 == "no":
q6=input("Does the phone work without issues? ")
if q6 == "yes":
print(sol7)
if q6 == "no":
q7=input("Are you running the lastest software version? ")
if q7 == "no":
print(sol8)
if q7 == "yes":
q8=input("Are the buttons producing accurate responses ")
if q8 == "no":
print(sol2)
if q8 == "yes":
q9=input("Is your phone battery draining and dying early? ")
if q9 == "yes":
print(sol6)
if q9 == "no":
q10=input("Does the phone turn on, even if it has been charged with a working charger? ")
if q10 == "yes":
print(sol9)
if q10 == "no":
q11=input("Would you like to visit the apple support site?: yes/no ")
if q11 == "yes":
webbrowser.open("https://support.apple.com/en-gb")
if q11 == "no":
q12=input("Would you like to visit the genius bar booking site?: yes/no ")
if q12 == "yes":
webbrowser.open("https://getsupport.apple.com/")
if q12 == "no":
print("Thank you for using this service. We hope you found it useful")