On 26/03/2014 16:54, Alan Gauld wrote:
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
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
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
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
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
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
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
Saad Bashir Wrote in message:
>>> ph = float(input('Enter the pH level: '))
Enter the pH level: 8.5
>>> if ph < 7.0:
... Â Â Â print(ph, "is acidic.")
... Â Â elif ph > 7.0:
... Â Â print(ph, "is basic.")
"SyntaxError: : unindent does not match any outer indentation level.
..
On 03/25/2014 02:21 PM, Saad Bashir wrote:
Hi everyone!
I am a novice programmer and actually learning to program in Python. I have
two issues that I am embarrassed to present as they seem to be extremely
basic.
1. But encouraged by the site to ask event the most basic questions on
this forum,
On Tue, Mar 25, 2014 at 10:21:49PM +0300, Saad Bashir 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?
Which shell are you using? How are you trying to copy/paste? Are you on
Linux, Mac, Windows, or som
On 25/03/14 19:21, Saad Bashir wrote:
As per its instructions I am using the IDLE environment (Python shell)
of Python [3.2.3 MSC v.1500 64 bit AMD64]. I have been going through
the book without any problems but have become stuck at the following stage:
When using "if" and "elif" statement I g
Hi everyone!
I am a novice programmer and actually learning to program in Python. I have
two issues that I am embarrassed to present as they seem to be extremely
basic.
1. But encouraged by the site to ask event the most basic questions on
this forum, here goes:
I am using the book:
Practical
12 matches
Mail list logo