raw_input and break
input/ldompeling at casema.nl
input/ldompeling at casema.nl
Wed Nov 4 17:37:21 EST 2015
In reply to "Joel Goldstick" who wrote the following:
> On Wed, Nov 4, 2015 at 4:44 PM, <input/ldompeling at casema.nl> wrote:
>
> > I have an continues loop with "while True:"
> > Now I want to use "raw_input" and when I press "s" on the keybord that it
> > will
> > "break" the continues loop.
> >
> > I tried:
> > choices = raw_input
> > if choises == s:
> > break
> >
You need to quote the s:
> if choices == 's'
I quote the s, but its still break even when I not press the s.
--------------------------------------------------------------
>But even when I not press "s" it "break"
> > I want that I not press "s" the script continues.
> >
> > Any ideas ?
> >
>
> You need to quote the s:
> if choices == 's'
>
> you need to check your spelling -- you have choices and choises
>
> You need to indent break 4 spaces
>
> >
> > Thanks
> >
> >
> >
> > --
> > --------------------------------- --- -- -
> > Posted with NewsLeecher v7.0 Beta 2
> > Web @ http://www.newsleecher.com/?usenet
> > ------------------- ----- ---- -- -
> >
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com/stats/birthdays
--
--------------------------------- --- -- -
Posted with NewsLeecher v7.0 Beta 2
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
More information about the Python-list
mailing list