Hi,
On 08/08/10 20:01, Shurui Liu wrote:
Okay. I am using WinXP, Python 3.1 on my workstation.
And this is the Python version information I got from putty.exe:
Python 2.5.4 (r254:67916, Apr 13 2009, 18:09:11)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
To add a small comment to what Dave's alr
Shurui Liu wrote:
Okay. I am using WinXP, Python 3.1 on my workstation.
And this is the Python version information I got from putty.exe:
Python 2.5.4 (r254:67916, Apr 13 2009, 18:09:11)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
You cannot use the same python source on 2.5 as you do in 3.1
rom: hugo.yo...@gmail.com
> Date: Sat, 7 Aug 2010 20:09:04 -0500
> Subject: Re: [Tutor] word_probles.py
> To: shurui@hotmail.com
> CC: waynejwer...@gmail.com; tutor@python.org
>
> On Sat, Aug 7, 2010 at 7:12 PM, Shurui Liu wrote:
> > There is no tracebacks.
> >
> &
On Sat, Aug 7, 2010 at 7:12 PM, Shurui Liu wrote:
> There is no tracebacks.
>
> I can run this program on putty.exe. That means the code is correct, but I
> cannot run it on IDLE or PyScripter.exe. Both of these two platforms only
> told me "Syntax Error" without tracebacks or something.
>
We'll
never will.
From: waynejwer...@gmail.com
Date: Sat, 7 Aug 2010 15:28:30 -0500
Subject: Re: [Tutor] word_probles.py
To: shurui@hotmail.com
CC: tutor@python.org
On Sat, Aug 7, 2010 at 2:17 PM, Shurui Liu wrote:
Here is a code named "word_problems.py". I can run it on putty.exe, but
On Sat, Aug 7, 2010 at 2:17 PM, Shurui Liu wrote:
>
> Here is a code named "word_problems.py". I can run it on putty.exe, but I
> don't understand why I cannot run it on IDLE or pyscripter.exe. Both of
> these two platform show that there are syntax errors in the code, errors
> are on those red
print \
"""
If a pregnant hippo, weighing 2,000 pounds, gives birth to a 100 pound
calf,
but then eats 50 pounds of food, how much does she weigh?"""
raw_input("Press the enter key to find out.")
print "2000 - 100 + 50 = ",
print 2000 - 100 + 50
print \
"""
If an adventurer returns from a success