Re: Begniner Question

2005-03-22 Thread bruno modulix
Glen wrote: #!/usr/local/bin/python import sys print "1.\tDo Something" print "2.\tDo Something" print "3.\tDo Something" print "4.\tDo Something" print "5.\tDo Something" print "6.\tExit" choice=raw_input("Please Enter Choice: ") if int(choice)==1: print "Here" else: pass if int(choice)==2:

Re: Begniner Question

2005-03-21 Thread Robert Kern
Glen wrote: #!/usr/local/bin/python import sys print "1.\tDo Something" print "2.\tDo Something" print "3.\tDo Something" print "4.\tDo Something" print "5.\tDo Something" print "6.\tExit" choice=raw_input("Please Enter Choice: ") if int(choice)==1: print "Here" else: pass if int(choice)==2:

RE: Begniner Question

2005-03-21 Thread Vishnu
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Sent: Tuesday, March 22, 2005 12:44 PM To: python-list@python.org Subject: Begniner Question #!/usr/local/bin/python import sys print "1.\tDo Something" print "2.\tDo Something&qu

Re: Begniner Question

2005-03-21 Thread Mikael Olofsson
"Glen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] if int(choice)==2: else: pass File "./Code.py", line 20 else: ^ IndentationError: expeted an indented block What am I doing wrong? As the error trace informs you, Python expexts an indented block. You need to put something

Begniner Question

2005-03-21 Thread Glen
#!/usr/local/bin/python import sys print "1.\tDo Something" print "2.\tDo Something" print "3.\tDo Something" print "4.\tDo Something" print "5.\tDo Something" print "6.\tExit" choice=raw_input("Please Enter Choice: ") if int(choice)==1: print "Here" else: pass if int(choice)==2: else: