Re: Quick Problem

2006-04-18 Thread [EMAIL PROTECTED]
Thank you. That worked perfectly, I understand why it was not working before because the variables were assigned within the function definition only. And replying to John Machin, admin is the name of the account I created on windows. The default administrator account in XP is called simply 'adminis

Re: Quick Problem

2006-04-18 Thread John Machin
On 19/04/2006 12:05 PM, [EMAIL PROTECTED] wrote: > Traceback (most recent call last): > File "C:\Documents and Settings\admin\Desktop\test\test.py", line 59, "admin"? I strongly suggest you set up another user ID without administrator privileges, and use that for the 99% of things that don't

Re: Quick Problem

2006-04-18 Thread Lars Yencken
Hello, On Tue, 18 Apr 2006 19:05:06 -0700, [EMAIL PROTECTED] wrote: > Here is my code: > > cw = 0 #Computer wins total > uw = 0 # User wins total > > def win(who): > if who == 1: > cw = cw + 1# computer win > elif who == 2: > uw = uw + 1# user win > Try addi

Quick Problem

2006-04-18 Thread [EMAIL PROTECTED]
I am learning how to program and I only started about a month ago so the answer to this is probably quite obvious. I'm running accross a problem when writing a rock, paper, scissor program. Although I can write such program in 5 minutes I want to write a program into which I will implement many oth