print 'Quiz made by Ricky Zheng' print('Please answer all questions with w or l') w = 1 W = 1 L = 0 Win = 1 Lose = 0 win = 1 lose = 0 loss = 0 Loss = 0 l = 0 print('What is the result of the first game?') result1 = input(' Result ') print('What is the result of the second game?') result2 = input(' Result ') print('What is the result of the third game?') result3 = input(' Result ') print('What is the result of the fourth game?') result4 = input(' Result ') print('What is the result of the fifth game?') result5 = input(' Result ') print('What is the result of the last game?') result6 = input(' Result ') x=0 if result1 + result2 + result3 + result4 + result5 + result6 == 5 or 6: print '1 Group 1 then' if result1 + result2 + result3 + result4 + result5 + result6 == 3 or 4: print '2 Group 2 then' if result1 + result2 + result3 + result4 + result5 + result6 == 1 or 2: print '3 Group 3 then' else: print '-1 Sorry, you are eliminated'
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