[Tutor] if...elif question
Sean 'Shaleh' Perry
shalehperry@home.com
Tue, 02 Oct 2001 19:41:10 -0700 (PDT)
>
> percent=75
> mark=grades(60)
>
> print "%s percent is a grade of %s" % (percent, mark)
>
> ...produce this output:
>
>>> 75 percent is a grade of D
>
Nobody else mentioned this but ..... you set 'percent' to 75, then pass a value
of 60 to grades() -- instead of using the percent variable. the 'percent'
variable in the function grades() is local to that function and the external
value you set has no affect on it.