Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
jrockpunk1
jay
Send A Message
Rating
5.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
Python
Posted 1.99 Year Ago
393 Views
Received 1 Rating
More Codes By This Author
guessing game
Guessing game
Greatest Common Factor
Very basic calculator
replace tabs ('\t') with...

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.
 
shadytyrant     Posted 1.98 Year Ago
 
 
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.
Page 1 of 1
More "Python" Source Codes By This Author
Recently Posted "Python" Source Codes
Recently Rated "Python" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.20 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved