Luke Paireepinart escribió:
Robert Wierschke wrote:
the else part can't have a condition!!!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Are you referring to Alan's post?
You should have
He wasn't. From the original post:
elif human.choice == 'rocks' and computer.choice ==
'scissors':
print Human wins!
human.points = human.points + 1
else human.choice == 'scissors' and computer.choice
== 'rocks':
print Computer
Hi All,
I am trying to fish through the history file for the Konquerer web
browser, and pull out the
web sites visited.
The file's encoding is binary or something
Here is the first section of the file:
Hi All,
I am trying to fish through the history file for the Konquerer web
browser, and pull out the
web sites visited.
The file's encoding is binary or something
Here is the first section of the file:
pdiv class="quote"Human nature is not a machin...for example in the above stirng i want to remove pand div class="quote"i triedstr = str.replace('(.*)','')it doesnt workthanks
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at
Hooray, right?! However, my real problem is dealing with another
dimension of data. So suppose I can access the following data:
5100, foo
5100, -
5100, -
5100, -
5200, foo
5200, -
Hint: Dictionaries can be keyed by tuples too.
( 5100, -) : 3
Does that help?
Alan G.
The file's encoding is binary or something
Here is the first section of the file:
'\x00\x00\x00\x02\xb8,\x08\x9f\x00\x00z\xa8\x00\x00\x01\xf4\x00\x00\x01\xf4\x00\x00\x00t\x00f\x00i\x00l\x00e\x00:\x00/\x00h\x00o\x00m\x00e\x00/\x00a\x00l'
Does that tell you anything?
Recall that on a 32 bit
sorry I answerd to
Message: 2
Date: Thu, 10 Aug 2006 16:39:41 -0700 (PDT)
From: Christopher Spears [EMAIL PROTECTED]
Subject: [Tutor] Rock, Paper, Scissors
and his else has a condition
else human.choice == 'scissors' and computer.choice
== 'rocks':
print Computer wins!
Hi Alan and other Gurus,
if you look carefully at the string below, you see
that in amongst the \x stuff you have the text I want:
z tfile://home/alpha
which I know to be an address on my system, plus a bit of preceeding txt.
Alan Gauld wrote:
The file's encoding is binary or something
Here is
Hi friends,
Please, examine attached script. I want fetch some data from online
resource and almost achieve this, but I can't fetch some weird formatted
data like this '45° Reverse Calf Press'. I got the following error:
45
Reverse Calf Press
Reverse Calf Raise
Seated Reverse Calf Press
5100- 3
5100 foo 1
5200 - 1
5200 foo 1
I want to count the frequency of the second column of data that I can
access.
It's kind of the long way around, but putting it into a sql database
and doing a groupby query might work.
Alan
could someone please explain to me how the scripts for the rock, paper,
scissors game work because i'm not quite sure.
tom
_
Windows Live Messenger has arrived. Click here to download it for free!
Hi, i used a list with R, P, S like:rps = [Rock, Paper, Scissors]random.shuffle(rps)computerObject = rps[0]Then, the computer pick a random object and i compare my object with computer's object.
;)2006/8/11, wesley chun [EMAIL PROTECTED]:
This looks like a fun project to work on.From reading the
hey anil,have you had a look at BeautifulSoup?http://www.crummy.com/software/BeautifulSoup/i haven't used it but i have seen it mentioned on the list for parsing html.
On 8/12/06, anil maran [EMAIL PROTECTED] wrote:
pdiv class=quoteHuman nature is not a machin...for example in the above stirng
i
I am going to be teaching Introduction to Python
Programming in the Fall at Foothill College in Los
Altos Hills, CA. This is a 5 quarter unit class for
students who already know one programming language.
I have been teaching programming for 20 years now,
including Java and C++ as of late. As I
On Sat, 2006-08-12 at 15:09 -0700, Elaine wrote:
I am going to be teaching Introduction to Python
Programming in the Fall at Foothill College in Los
Altos Hills, CA. This is a 5 quarter unit class for
students who already know one programming language.
I have been teaching programming for
Elaine wrote:
I am going to be teaching Introduction to Python Programming in the Fall at
Foothill College in Los Altos Hills, CA.
Great. Welcome to the Python Teachers Association. I'm your neighbor
to the north, above Berkeley.
This is a 5 quarter unit class for students who already know
2) Since this is an introductory class, I am tempted to leave out
optional topics like argument matching modes, walk, map, filter,
reduce, apply. Do you think these are required for any Python
programmer?
Since many of there will disappear in Python 3 it might be OK to omit
them. OTOH
Hi,I've been playing around with Python for a while now, and I'm looking for where next to take my skills. I'm thinking of writing a simple text editor (in the style of Nano), but I'm not sure where to start. Some help or a point to a tutorial would be great
CheersTom.
19 matches
Mail list logo