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.
> >
> &
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
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
is the code of this game. I want to change some part of them.
1. Since I don't know what part of code is "responsible" for the
number of cards, so I don't know how to add a "card number check"
attribute, I mean, to check the number of card is more enough for next
Yes, I found it. thanks!
On Wed, Apr 7, 2010 at 7:00 AM, Wesley Brooks wrote:
> Morning,
>
> Your only supplying one argument to cone, when you need two: radius &
> height.
>
> Cheers,
>
> Wesley Brooks.
>
> On 7 April 2010 11:56, Shurui Liu (Aaron Liu) wro
.1),Cone(1.2)]
# Print out the list contents.
for volume in list:
print "The volume is: ", volume.calculateArea()
raw_input("\n\nPress the enter key to exit.")
Traceback (most recent call last):
File "classVolume.py", line 30, in
list = [Cube(1.1),Cube(1.2),Sphere(1.1
ritter has been born!
A new critter has been born!
Hi. I'm an instance of class Critter.
Hi. I'm an instance of class Critter.
On Sun, Apr 4, 2010 at 2:05 PM, Shurui Liu (Aaron Liu)
wrote:
> I am studying about how to create a constructor in a Python program, I
> don't re
it__(self):
print "A new critter has been born!"
def talk(self):
print "\nHi. I'm an instance of class Critter."
# main
crit1 = Critter()
crit2 = Critter()
crit1.talk()
crit2.talk()
raw_input("\n\nPress the enter key to exit.&q
OK, can you tell me import.py is empty or not? If it's not an empty
document, what's its content?
On Thu, Apr 1, 2010 at 5:45 AM, Dave Angel wrote:
> Shurui Liu (Aaron Liu) wrote:
>>
>> # geek_translator3.py
>>
>> # Pickle
>> import pickle
>>
&
ekdictionary.txt', 'r+'))
# close file
geekfile.close()
raw_input("\n\nPress the enter key to exit.")
When I run it, the system gave me the feedback below:
Traceback (most recent call last):
File "geek_translator3.py", line 4, in
import pickle
File
yeah, thank you!
On Wed, Mar 31, 2010 at 1:41 AM, Christian Witts wrote:
> Shurui Liu (Aaron Liu) wrote:
>>
>> In Python, could space be counted as a character same as a letter?
>>
>>
>
> len(...)
> len(object) -> integer
> Return the number o
In Python, could space be counted as a character same as a letter?
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
CSET 1100.')
w.write('\n')
w.write('We get to analyse all sorts of real-world problems.\n')
w.write('\n')
w.write('We also have to memorize some programming language syntax.')
w.write('\n')
w.write('But, the center of our focus is game programming
g
>
>>>> a = 0
>>>> b = str(a)
>>>> type(b)
>
>
>
> On Mon, Mar 29, 2010 at 2:53 AM, Shurui Liu (Aaron Liu)
> wrote:
>>
>> Here's the thing, I wanna change some wrong words from a text file like
>> this:
>>
>&
eError: 'type' object is unsubscriptable
What's wrong?
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
know how to add its path in parentheses.
What do u think?
2010/3/28 Shurui Liu (Aaron Liu)
> I came out with a transigent answer: save the right text file*
> (storyAmer.txt*) at the right place /cset1100py/assign19/storyAmer.txt.
> Then I just add a command after the command which p
us is game programming and it is fun.
Our instructor adds *color* to his lectures that make them interesting.
It is an honour to be part of this class!
在 2010年3月28日 下午12:26,Shurui Liu (Aaron Liu) 写道:
> Since English is not my native language, so I got confused by some
> requirement of my assig
ET 1100.We get to analyze all sorts of
real-world problems.We also have to memorize some programming language
syntax. But, the center of our focus is game programming and it is fun.Our
instructor adds colour to his lectures that make them interesting.It is an
honor to be part of this class!
umber from 1.0 to 1.9, and I did this in the same way as
integer: range(1.0,2.0,0.1), but it doesn't work. Can you help me? Thank
you!
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
___
Tutor maillist -
How to describe a math formula: sphere=(4/3)*PI*R**3?
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python
print ("And it only took you", "tries times", "tries !\n")
if ("tries = 0"):
print "You have tried 10 times, game over."
raw_input("\n\nPress the enter key to exit.")
raw_input("\n\nPress the enter key to exit.")
--
Sh
command for this mission? Cause I don't even know how to google it.
Thank you!
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscriptio
you would weigh only",
moon_weight, "pounds?"
sun_weight = weight * 27.1
print "But on the sun, you'd weigh", sun_weight, "(but, ah... not for long)."
raw_input("\n\nPress the enter key to exit.")
--
Shurui Liu (Aaron Liu)
Computer
SyntaxError: EOL while scanning single-quoted string.
2010/2/14 Shurui Liu (Aaron Liu)
> Here is a program I need to run in putty.exe, but there is an error in it.
> I cannot find out. When I ran this program, it mentions that the error is in
> red line.It shows that "SyntaxEr
t;
> These assignments are more about learning your local computing
> environment and tools than they are about Python. If you are having
> trouble you should ask for help at school.
>
> Kent
>
--
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University
25 matches
Mail list logo