×

# TEST: Need help with Python code

 0 from random import randint input=randint(1,99) while(input!=42): print(input) input=randint(1,99) print("End of output")  Generating the input from randint. Getting a runtime error(NZEC) asked 05 Apr '12, 01:31 0★ko123 1●1●1●2 accept rate: 0% 0★admin ♦♦ 19.6k●349●497●539 Even its a TEST question, you should provide a question here at least. (05 Apr '12, 19:58) mokaddim0★ Sorry !! This is the question Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits. (05 Apr '12, 21:46) ko1230★

 1 the input is provided by the online judge. you don't need to generate it yourself. that's the point ! answered 05 Apr '12, 22:41 3.4k●2●19●55 accept rate: 20%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×477
×401
×243
×195

question asked: 05 Apr '12, 01:31

question was seen: 1,567 times

last updated: 10 Jul '12, 12:35