User Profile
Collapse
-
Thank you for responding! There was some indentation errors I fixed, but now line 26 has a syntax error.. -
How do I make a for loop for my guessing game?
Hi, I have a problem with implementing a for loop for my program. I don't understand how to correctly make a for loop in asking the player to play again after getting the number right. The options should be yes as 1 and no as 2.
I have this so far...:
Code:def playgame(): import random num = random.randint(1,10) guess = 0 score = 0 name= input(('Hi, what is your name?'))
Last edited by bvdet; Feb 2 '13, 08:13 PM. Reason: Please use code tags when posting code [code]....[/code]
No activity results to display
Show More
Leave a comment: