Person= input("enter an Author:") if Person == 'Tolkien': print("It does not do to leave a live dragon out of your calculations, if you live near him -J. R. R. Tolkien") elif Person == 'John Green': print('As he read, I fell in love the way you fall asleep: slowly, and then all at once. -John Green') elif Person == 'JK Rowling': print('It takes a great deal of bravery to stand up to our enemies, but just as much to stand up to our friends. -JK Rowling') else: print("sorry that author is not in here; Try a diffrent spelling or author")
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