Python "trouble shooting machine " needs fixing

Whats about doing it with “if statements” and raw_input ?

x = raw_input("Is there a problem with your hardware or is do you need technical assistance. Please type technical assistance or hardware")

if x == ("technical assistant"):
    print("This troubleshooter is only for hardware problems please call 01474 709853 for technical assistance")

if x == ("hardware"):
    x1=raw_input("Have you dropped your phone recently? Please type Yes or No")

if x1 == ("No"):
    x2=raw_input("Is your phone able to charge? Please type Yes or No")

and so on…

Browse More Popular Posts

Leave a Comment