Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Дмитрий
ph=float(input("Input ph: ")) if ph<7.0: print "acid" elif ph>7.0: print "basic" else: print "don't know what:)" paste it in notepad and save as some_name.py or i can send you this file it is realy easy. 26.03.2014 03:28, Steven D'Aprano пишет: On Tue, Mar 25, 2014 at 10:21:49PM +0

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Saad Bashir
Jay Lozier, Alan Gauld, Steven D'Aprano, Jim Byrnes, Jim Byrnes, Dave Angel and Denis Spir, Thank you each and every one of you. My code now works and the stumbling block is over. Thank you for taking the time and making the effort for helping a novice with such a piddling problem. Specially Al

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Alan Gauld
On 26/03/14 15:38, Mark Lawrence wrote: On 26/03/2014 01:26, Alan Gauld wrote: >>> if ph < 7.0: print(ph, "is acidic.") elif ph > 7.0: print(ph, "is basic.") in my IDLE. That's pretty ugly and I wish the IDLE guys would fix it but it's been that way for a long time. Please

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Mark Lawrence
On 26/03/2014 01:26, Alan Gauld wrote: >>> if ph < 7.0: print(ph, "is acidic.") elif ph > 7.0: print(ph, "is basic.") in my IDLE. That's pretty ugly and I wish the IDLE guys would fix it but it's been that way for a long time. Please raise an issue on the bug tracker if the

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Jim Byrnes
On 03/26/2014 07:13 AM, spir wrote: On 03/26/2014 02:32 AM, Jim Byrnes wrote: 2. Another problem is that the Python shell is allowing me to copy/paste any code at all. Is there something I am not doing right? I was able to copy from idle using Ctrl-C and paste to my newreader using Ctrl-V and

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread spir
On 03/26/2014 02:32 AM, Jim Byrnes wrote: 2. Another problem is that the Python shell is allowing me to copy/paste any code at all. Is there something I am not doing right? I was able to copy from idle using Ctrl-C and paste to my newreader using Ctrl-V and then copy from my newsreader back to