#Tomer's Python test2 #Help From: Tiny.cc (website), #What it dos: #Program asks for your name #than tels you helo name how many random number shouldi make # makes numbers # ges three numbers beatween 0-20 that i gmade #tels you the number and how many you got right name=raw_input("Hello person what is your name?") ish=1 randomnumber=[0,0,0,0] while(ish==1): hiest_of_nums=input("What is the maximum number I should make(no lower than 5)") if(hiest_of_nums<=5): print "nice try, try again",name elif(hiest_of_nums>5): ish=2 import random for i in range(0,3,1): randomnumber[i]= random.randrange(hiest_of_nums)+1 print randomnumber[i]
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