[Tutor] functions

Matthias Hager martok@mattsmail.com
Fri, 19 Jan 2001 09:12:27 -0800


I have the () after it and it sometimes works but someimes doesn't. I finally got it to, never mind I'll try to show you.

print "A brief intro here"

main_menu()

def main_menu():
  print "Commands here"

I finally got that to work, then I added a login function where it asks there name. So it is now:

print "A brief intro here"

login()
main_menu()

def main_menu():
  print "Commands here"

def login():
  name = input("What is your name?")

But it is giving me the same error, something like: variably login does not exist. 
What am I doing wrong?

Matthias



--
Programming isn't cool, it's awesome.

%%%################?????????###################^^^
                                          
          martok@mattsmail.com              
      http://mymymatthias.tripod.com/       
                                            
%%%################????????####################^^^         


--



Like my email address? Get your own for FREE at http://firstname.com 
Get you@JohnsMail.com or you@AlexsMail.com or pick from 500 more!