lesson to learn

Leif K-Brooks eurleif at ecritters.biz
Thu Jul 8 04:22:15 CEST 2004


David R. Stockwell (wg-xiao) wrote:
> def fcn(day):
>    print "day is ", day
>    if (day < 10):
>       print "day is less than 10"
>    else:
>       if  day < 20 :
>           print "day is less than 20 but greater than 10"

Why not use elif: instead of else: if:?



More information about the Python-list mailing list