print ('please type in a number') n = input() print ('you typed in '), print n print ("the first number *2 is" ), print n*2 print ('the frist number you tpyed in plus 5 is'), print n+5 print ('please type in a second number') x = input() print ('the second number you typed in is '), print x print ('this is the number you typed times 4 '), print x*4 print ('the second number times the frist number is '), print x*n if n>x: print ('the frist number is biger than the second') elif x>n: print('the secod number is bigger than the first') else: print ('the two numbers are equal') for i in range(0, 4): print n print "next" # Emma, Print out he first number 3 times using the for loop for i in range (0, x): print n #print out the second number as many times as the first number in the for loop both = x+n print "countdown" for i in range (0, both): # print both print both-i #add the first and the second number and print out all of the numbers counting down to zero'`
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