"Do yourself a HUGE favour and read this before posting any more
questions
to comp.lang.python. Trust me, you really will thank us.
http://www.catb.org/~esr/faqs/smart-questions.html "
I find that webpage highly insulting, and so should you. It is treating
you like a small child, who needs to be
Steven D'Aprano wrote:
> On Fri, 17 Feb 2006 11:51:08 -0800, Byte wrote:
>
>
>>Great, thanks all. Now, how come
>>
>>if x == mx: print x
>>break
>>
>>Dosnt work?
>
>
> Do yourself a HUGE favour and read this before posting any more questions
> to comp.lang.python. Tr
On Fri, 17 Feb 2006 11:51:08 -0800, Byte wrote:
> Great, thanks all. Now, how come
>
> if x == mx: print x
> break
>
> Dosnt work?
Do yourself a HUGE favour and read this before posting any more questions
to comp.lang.python. Trust me, you really will thank us.
http
Ahhh, Thanks
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Great, thanks all (the point of x = 2 was that i dont understand
exactly what True is on while True:)
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
Byte wrote:
> Great, thanks all. Now, how come
>
> if x == mx: print x
> break
>
> Dosnt work?
If you have a suite with more than one line, you must put it on a new line.
if x == mx:
print x
break
Perhaps it would be good for you to work through the Python T
Great, thanks all. Now, how come
if x == mx: print x
break
Dosnt work?
-- /usr/bin/byte
--
http://mail.python.org/mailman/listinfo/python-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Byte wrote:
> How can I make the following code:
>
> from random import random
>
>
>
> def stuff(a, mx):
> x = 2
> while x == 2:
> x = random()
> if x == mx: print x
> else: print 'No luck,', x
> x = 2
>
> S
Benjamin Niemann wrote:
> Byte wrote:
>
> > How can I make the following code:
> >
> > from random import random
> >
> >
> >
> > def stuff(a, mx):
> > x = 2
> > while x == 2:
> > x = random()
> > if x == mx: print x
> > else: print 'No luck,', x
> > x = 2
>
Byte wrote:
> How can I make the following code:
>
> from random import random
>
>
>
> def stuff(a, mx):
> x = 2
> while x == 2:
> x = random()
> if x == mx: print x
> else: print 'No luck,', x
> x = 2
>
> Stop when x == mx?
What's the intention behind
How can I make the following code:
from random import random
def stuff(a, mx):
x = 2
while x == 2:
x = random()
if x == mx: print x
else: print 'No luck,', x
x = 2
Stop when x == mx?
Thanks in advance,
-- /usr/bin/byte
--
http://mail.python.org/mailm
11 matches
Mail list logo