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)

14th Jun 2024, 2:29 AM
ShanmukaSailu
ShanmukaSailu - avatar
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?
14th Jun 2024, 3:52 AM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
Since we don’t have any additional conditions, we simply set a continuation: for grade in grades: if grade <= 50: continue print(grade)
9th Oct 2024, 11:42 AM
Aleksejs Smirnovs
Aleksejs Smirnovs - avatar
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)
24th Sep 2024, 4:50 AM
SHAIK ASHRAF HUSSAIN