Re: [Tutor] CGI Calculator

2007-07-16 Thread Eric Brunson
kens: 1 Tokens: 2 ... Tokens: 6000 etc... > > Can you recommend any tutorials for me? > > - Original Message - > From: "Eric Brunson" <[EMAIL PROTECTED]> > To: "Darren Williams" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, July 16,

Re: [Tutor] CGI Calculator

2007-07-16 Thread Darren Williams
That's just printing Tokens: 1 Tokens: 2 ... Tokens: 6000 etc... Can you recommend any tutorials for me? - Original Message - From: "Eric Brunson" <[EMAIL PROTECTED]> To: "Darren Williams" <[EMAIL PROTECTED]> Cc: Sent: Monday, July 16, 2007 2:48 P

Re: [Tutor] CGI Calculator

2007-07-16 Thread Eric Brunson
1 print "Tokens: %s" % Tokens e. > > - Original Message - From: "Eric Brunson" <[EMAIL PROTECTED]> > To: "Darren Williams" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, July 16, 2007 2:01 PM > Subject: Re: [Tutor] CGI Calculator

Re: [Tutor] CGI Calculator

2007-07-16 Thread Darren Williams
n" <[EMAIL PROTECTED]> To: "Darren Williams" <[EMAIL PROTECTED]> Cc: Sent: Monday, July 16, 2007 2:01 PM Subject: Re: [Tutor] CGI Calculator > Darren Williams wrote: >> Ok, now i've modified my script but am getting another error, i've >> com

Re: [Tutor] CGI Calculator

2007-07-16 Thread Eric Brunson
Darren Williams wrote: > Ok, now i've modified my script but am getting another error, i've > commented a few useless (hopefully) lines out - > > #!/usr/bin/env python > > import cgitb; cgitb.enable() > import cgi > > [snip] > 17 while usedPockets > totalJunkies - labSpace * 17: > >

Re: [Tutor] CGI Calculator

2007-07-16 Thread Darren Williams
args = ("unsupported operand type(s) for -: 'str' and 'str'",) It's confused me - it says I can't subtract a string from a string but then gives the value's of the variables (that I randomly entered into the form) at the bottom - usedPockets

Re: [Tutor] CGI Calculator

2007-07-16 Thread Eric Brunson
Darren Williams wrote: > Hi all, > > I am a Python convert coming from a JavaScript background Welcome to Python, Darren. > (as you can probably tell) and am currently writing my first > application using Python which will be a calculator for an online game > I used to play (thought it would

[Tutor] CGI Calculator

2007-07-16 Thread Darren Williams
Hi all, I am a Python convert coming from a JavaScript background (as you can probably tell) and am currently writing my first application using Python which will be a calculator for an online game I used to play (thought it would be a decent first project) but am not sure on the syntax for ref