FAQ

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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 21 of 21 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedNov 18, '03 at 12:03p
activeNov 23, '03 at 11:38p
posts21
users16
websitepython.org

People

Translate

site design / logo © 2022 Grokbase