# input: *args, **kwargs, sufficient user responce -> string def input(*args, **kwargs): outStr = raw_input("testing...test test") print # fiddle does not retun after the prompt return outStr userQuestion = "Enter the data from one row of your table\nuse spaces to seperate each cell (data item)\nomit units\nunits are assumed to be meters per second for velocity\nmeters for maximum height\nand degrees for angle.\nIf you used other units, convert to assumed units before entry.\nAgain, the units must be ommited.\nnegative signs must be connectged to the number (ex: -1.01).\nPeak Height is Ymax,\nVo is Vmag\nVdeg is Angle.\n\nEnter Vx Vy Ymax Vmag Vdeg\nhere" entryNumErrStr = "You did not enter 5 items, will you try again? (yes):" rawList = input(userQuestion).strip().split() print rawList numList = [float(a) for a in rawList] for a in numList: print a print sum(numList) print "is done"
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