Hello i need help with my python code . I am trying use the elif . I am having trouble with how to use the yes and no input for the user . Here is my code.
print("Lab 3")
print("17 Wi-Fi Diagnostic Tree")
#answer1 = yes
#answer2 = no
print("Reboot the computer and try to connect. ")
print(input (Enter ))
answer =input ("Did that fix the problem? ")
if answer == answer1
print ("Promblem solved. ")
elif answer == answer2
print ("Reboot the router and try to reconnect. ")
answer =input ("Did that fix the problem? ")
if answer == answer1
print ("Promblem solved. ")
elif answer == answer2
print ("Make sure the cables plugged in firmly.")
answer =input ("Did that fix the problem? ")
if answer == answer1
print ("Promblem solved. ")
elif answer == answer2
print ("Move he router to a new location. ")
answer =input ("Did that fix the problem? ")
if answer == answer1
print ("Promblem solved. ")
elif answer == answer2
print("Get a new router. ")
else:
print ("Invaild input. ")
else:
print("Invaild input. ")
else:
print ("Invaild input. ")
else:
print ("Invaild input. ")