How can i fix this?

Peter Otten __peter__ at web.de
Sat Jun 22 17:46:37 EDT 2013


Борислав Бориславов wrote:

> while 1:
>     name=raw_input("What is your name? ")
>     if name == "bobi": print "Hello Master!" and break
>     else: print "error"

> I want if my conditions are met to do a couple of things and i cant do
> that

> while 1:
>     name=raw_input("What is your name? ")
>     if name == "bobi": 
          print "Hello Master!" 
          break
>     else: print "error"
  




More information about the Python-list mailing list