Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48948
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: How can i fix this? |
| Date | 2013-06-22 22:53 +0100 |
| References | <b0872ec1-36c4-4e6f-9a5b-c826d508ea6c@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3708.1371938005.3114.python-list@python.org> (permalink) |
On 22/06/2013 22:31, Борислав Бориславов 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
>
You most certainly can :)
while 1:
name=raw_input("What is your name? ")
if name == "bobi":
print "Hello Master!"
print "Why do some people insist on cramming all of their code
onto one line?"
break
else:
print "error"
--
"Steve is going for the pink ball - and for those of you who are
watching in black and white, the pink is next to the green." Snooker
commentator 'Whispering' Ted Lowe.
Mark Lawrence
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can i fix this? Борислав Бориславов <hexofbane@gmail.com> - 2013-06-22 14:31 -0700
Re: How can i fix this? Peter Otten <__peter__@web.de> - 2013-06-22 23:46 +0200
Re: How can i fix this? Борислав Бориславов <hexofbane@gmail.com> - 2013-06-22 14:50 -0700
Re: How can i fix this? Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-22 16:55 -0600
Re: How can i fix this? John Gordon <gordon@panix.com> - 2013-06-23 00:53 +0000
Re: How can i fix this? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-22 22:53 +0100
Re: How can i fix this? Борислав Бориславов <hexofbane@gmail.com> - 2013-06-22 18:35 -0700
csiph-web