User Profile

Collapse

Profile Sidebar

Collapse
xxHana
xxHana
Last Activity: Feb 3 '13, 06:58 PM
Joined: Feb 2 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thank you for responding! There was some indentation errors I fixed, but now line 26 has a syntax error..
    See more | Go to post

    Leave a comment:


  • xxHana
    started a topic How do I make a for loop for my guessing game?

    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?'))
    ...
    See more | Go to post
    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
Working...