On 25 May 2013 19:37, "Chris Angelico" wrote:
> Ah, who am I kidding. Be as rude as you like. I have to work with PHP all
week.
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list
I have cried.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, May 26, 2013 at 4:27 AM, Nobody wrote:
> On Thu, 23 May 2013 17:20:19 +1000, Chris Angelico wrote:
>
>> Aside: Why was PHP's /e regexp option ever implemented?
>
> Because it's a stupid idea, and that's the only requirement for a feature
> to be implemented in PHP.
Hey, don't be rude. I m
On Thu, 23 May 2013 17:20:19 +1000, Chris Angelico wrote:
> Aside: Why was PHP's /e regexp option ever implemented?
Because it's a stupid idea, and that's the only requirement for a feature
to be implemented in PHP.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, May 23, 2013 at 5:11 PM, Terry Jan Reedy wrote:
> On 5/23/2013 12:47 AM, Steven D'Aprano wrote:
>>
>> On Wed, 22 May 2013 22:31:04 +, Alister wrote:
>>
>>> Please write out 1000 time (without using any form of loop)
>>>
>>> "NEVER use input in python <3.0 it is EVIL"*
>
>
>> But all jo
On 5/23/2013 12:47 AM, Steven D'Aprano wrote:
On Wed, 22 May 2013 22:31:04 +, Alister wrote:
Please write out 1000 time (without using any form of loop)
"NEVER use input in python <3.0 it is EVIL"*
But all joking aside, eval is dangerous, yes, but it is not "evil".
He put that label o
On Thu, May 23, 2013 at 2:47 PM, Steven D'Aprano
wrote:
> But all joking aside, eval is dangerous, yes, but it is not "evil". It
> needs to be handled with caution, but there are good uses for it. In
> fact, there are a few -- a very few -- things which can *only* be done
> with eval or exec. That
On Wed, 22 May 2013 22:31:04 +, Alister wrote:
> Please write out 1000 time (without using any form of loop)
>
> "NEVER use input in python <3.0 it is EVIL"*
>
> as Chris A point out it executes user input an can cause major damage
> (reformatting the hard disk is not impossible!)
Is he all
Oh yes, you guys are right. Thank you very much for warning me that.
On Thursday, May 23, 2013 6:31:04 AM UTC+8, Alister wrote:
>
> as Chris A point out it executes user input an can cause major damage
>
> (reformatting the hard disk is not impossible!)
>
It definitely can cause major damage
> From: alister.w...@ntlworld.com
[...]
> Kevin
>
> Please write out 1000 time (without using any form of loop)
>
> "NEVER use input in python <3.0 it is EVIL"*
>
> as Chris A point out it executes user input an can cause major damage
> (reformatting the har
On Tue, 21 May 2013 23:52:30 -0700, Kevin Xi wrote:
> On Wednesday, May 22, 2013 2:23:15 PM UTC+8, C. N. Desrosiers wrote:
>> Hi,
>>
> Hi,
>>
>> I'm just starting out with Python and to practice I am trying to write
>> a script that can have a simple conversation with the user.
>>
> So you may
On Wed, May 22, 2013 at 4:52 PM, Kevin Xi wrote:
> On Wednesday, May 22, 2013 2:23:15 PM UTC+8, C. N. Desrosiers wrote:
>> age=raw_input('Enter your age: ')
>> if age > 18:
>
> You can either use `raw_input` to read data and convert it to right type, or
> use `input` to get an integer directly. R
Muchas gracias!
On Wednesday, May 22, 2013 2:35:18 AM UTC-4, Fábio Santos wrote:
> You have to convert `age` to an integer. Use int() to do it. Then you can
> compare it to other numbers and obtain the expected results.
>
> On 22 May 2013 07:29, "C. N. Desrosiers" wrote:
>
> Hi,
>
>
>
> I'm
On Wednesday, May 22, 2013 2:23:15 PM UTC+8, C. N. Desrosiers wrote:
> Hi,
>
Hi,
>
> I'm just starting out with Python and to practice I am trying to write a
> script that can have a simple conversation with the user.
>
So you may want to search the doc before you ask: http://docs.python.org
>
You have to convert `age` to an integer. Use int() to do it. Then you can
compare it to other numbers and obtain the expected results.
On 22 May 2013 07:29, "C. N. Desrosiers" wrote:
> Hi,
>
> I'm just starting out with Python and to practice I am trying to write a
> script that can have a simple
Hi,
I'm just starting out with Python and to practice I am trying to write a script
that can have a simple conversation with the user.
When I run the below code, it always ends up printing response to "if age >
18:" -- even if I enter a value below 18.
Can anyone point me to what I am doing wr
15 matches
Mail list logo