Code is correct but not printing the first element in the list . please anyone can suggest why its not printing


#1

grades = [100,100,90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]

def print_grades(grade):
for i in grade:
print i


#2

a function only execute when called, the function is called in your case, so the function doesn't execute


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.