|
General Details
|
|
Python
|
|
Posted 1.99 Year Ago
|
|
393 Views
|
|
Received 1 Rating
|
|
guessing game
Description
Guessing game, easy enough to figure out
Technical
OS: Ubuntu 9.10
Using IDLE 2.6
Source Code
Comments
| Please login to post comments. |
|
|
I like the small twist on the normal guessing games you see around. However I also think that you over used while loops.
Lines 9, 10 ,11 could be replaced with a smaller for loop.
for i in range(0, 5):
randomNum[i] = random.randint(1, 10)
and lines 41 to 44
for i in range(0, 5):
print randomNum[i]
Since you using 2.x you should also change input to
guess = int(raw_input(">"))
Also more commenting around lines like 28 and 29.
Rated 5/10 good job, but needs improvement.
|
More "Python" Source Codes By This Author
Recently Posted "Python" Source Codes
Recently Rated "Python" Source Codes
|