title: Syntax Error when trying to define multiple functions in python?
body: <p>I'm trying to learn python, so I'm just writing some simple programs. I wrote these two bits of code to define two of the functions I want to use in the program, and they both do what they want but when I try to paste them into IDLE it says there is a syntax error at the second def. Any idea what this is?</p>
  
  <p>here's the code:</p>
  
  <pre><code>def print_seq1(number):
  
      number = input("Pick a number: ")
  
      print " "
      while number != 1:
          if number%2==0:
              print number
              number = number/2
          else:
              print number
              number = number*3 + 1
      print number
      print " "
      choice = 0  
  
  def print_seq2(number):
  
          number = input("Pick a number: ")
          print " "
          while number != 1:
              if number%2==0:
                  print number,
                  number = number/2
              else:
                  print number,
                  number = number*3 + 1
          print number
          print " "
          choice = 0
  </code></pre>