How can i fix this?

John Gordon gordon at panix.com
Sat Jun 22 20:53:12 EDT 2013


In <54f1fb77-355b-4796-824f-1ee29c402720 at googlegroups.com> =?UTF-8?B?0JHQvtGA0LjRgdC70LDQsiDQkdC+0YDQuNGB0LvQsNCy0L7Qsg==?= <hexofbane at gmail.com> writes:

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

> this doesent help me at all

Then you'll have to explain why, exactly, it doesn't help.  Simply saying
"this doesn't help me" is very unhelpful to *us*.

Does it produce a syntax error?
Does it run, but produce the wrong output?
Some other reason?

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list