On 22 May 2002, gr wrote: > Hi, > is there a simple possiblity to "teach" Python: > > y=if x>High: 2 elif x<Low: 1 else: 0 Try y = (x>High)*2 or (x<Low) Pearu