0
help me to solve
Complete the code to iterate through the grades list and display only values greater than 50 grade grades: grade <= 50: print(grade)
3 Answers
+ 1
Well, it looks like youâre actually trying, but that isnât how if statements or for loops work. You should go back and do those lessons again. Specifically, you seem to have replaced the âforâ, âinâ, and âifâ keywords with newlines?
+ 1
Since we donât have any additional conditions, we simply set a continuation:
for grade in grades:
if grade <= 50:
continue
print(grade)
0
Complete the code to iterate through the grades list and display only values greater than 50
for
grade
in
grades:
if
grade <= 50:
print(grade)
Check
Complete the code to iterate through the grades list and display only values greater than 50
for
grade
in
grades:
if
grade <= 50:
print(grade)