python SyntaxError: invalid syntax on def
Question: Can you help me with my code? It's a small part of it:

    
    
        # -*- coding: utf-8 -*-
    
        from sys import exit
    
    
        def inside():
          print "Text."
          print "Text."  
          ladder = raw_input("Text.\n> ")
          if "3" in ladder:
            print 'Text.', \
                  'Text.'
            fl()      
          else:
            print "Text. %d Text." % ladder
            room_number_wrong = raw_input("Text.\n> ")
            dead("Text.")
    
    
        def fl():
          print "Text."
          room_number_right = raw_input("Text.\n> ")
          if "12" in room_number_right:
            print "Text."
            open()
          else:
            dead('Text.', \
                  'Text.!')
    
        def dead(why):
          print why, "Good job!"
          exit(0)         
    
    
        def open():
          print "Text."
          print "Text."
          welcome = raw_input.lower("Text.\n> ")
          if "Text." in welcome:
            dead("Text.")
          elif "Text." in welcome or "Text." in welcome:
            print 'Text.', \
                   'Text.' 
          else:
            dead('Text.', \
                  'Text.'
    
    
        def enter():
          print 'Text.', \
                 'Text.'
          print "Text."
    
          name = raw_input("Text.\n> ")
          if "Text." in name or "Text." in name:
            print "Text."
            inside()
          else:
            dead("Text.")
    
    
        enter()           
    

When I try to run code, in this part, in the first line (`def fl():`) I
received error:

> SyntaxError: invalid syntax Maybe I forgot something. I'm using Python
> 2.7.10.


Answer: I rewrite code and it worked. Thanks for help!

