Print(“Hello and welcome to the phone troubleshooter.”) answer=Input (“have you dropped your phone?”) If answer==’yes’: answer=input(“be more careful and take your phone to the factory to be repaired”) elif answer==’no’ print(“is your phone water damaged?”) If answer==’yes’: print(“place your phone in rice for a few days, and if this doesn’t help contact my manager”) elif answer==’no’ answer=input(“have you installed the latest software?”) If answer==’no’ print(“your phone may need updating”) elif answer==’yes’ answer=input(“is your phone charged?”) If answer==’yes’ print(“call my manager for more advice on fixing your phone”)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question