title: Codecademy Loops 8/19
body: <p>I haven't programmed in a while so I thought I'd continue with my codecademy tutorial to get back into shape. I'm really confused right now because I'm getting all these syntax errors where I'm pretty sure I shouldn't.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>from random import randint
  
  # Generates a number from 1 through 10 inclusive
  random_number = randint(1, 10)
  
  guesses_left = 3
  # Start your game!
  while guesses_left &gt; 0:
      guess = int(raw_input("Your guess: ")
      if guess == random_number:
          print "You win!"
          break
      guesses_left = guesses_left - 1
  else:
      print "You lose."
  </code></pre>
  
  <p>I'm getting a syntax error because of the colon on line 10.</p>
  
  <p>I don't get why, its an if statement, and after an if statement you always have a colon don't you?</p>
  
  <p>I've been getting a bunch of syntax errors today for simple stuff like this and I don't understand why.</p>