I dont get this!

Yasuaki Kudo yasu at yasuaki.com
Thu Aug 23 19:06:09 EDT 2001


Looks like you've had a bad sleep ;-)  below works for me!

value = (103,)
low = (25, )
high = (35, )

def check_hilo(i):
 if value[i] < low[i]:
  return 1
 if value[i] > high[i]:
  return 2

 return 0

print check_hilo(0)





More information about the Python-list mailing list