new guy

Mark Roach mrroach at okmaybe.com
Sun Nov 23 18:38:38 EST 2003


On Tue, 18 Nov 2003 12:03:50 +0000, nards_collective wrote:

> 	if e>= 1 :
> 		a=e
> 	else :
> 		a=0
> 
> 
> I keep getting a syntax error.
> This piece of code is meant to keep the value of a equal to or grater
> than 0. Any odeas would be appreciated.

you could also use a = max(0, e)

-Mark




More information about the Python-list mailing list