0
Python Developer
Complete the code to iterate through the grades list and display only values greater than 50
7 Answers
+ 7
Purity Iwuoha ,
if you like to get help, please show us your *current code try* first.
+ 4
At first glance, I noticed two errors:
1. There is no indentation after the for loop condition. On the next line of code, add at least four spaces to the right.
2. The addition and assignment operator đ += is just hanging in the air. Variables or values should be written to the left and right of them
+ 1
Ohh yeah thank you
0
for grade in grades:
if grade <= 50:
+=
print(grade)
0
That += is wrong
What could be the answer
0
Grades + 1
0
grades = [23,54,78,24,63,38,60,59]
for i in grades:
print(i, end = ' ') if i > 50 else None