So the task is the following:-
“ complete the code to iterate through the grades list and display only values greater than 50 “
For grade in grades: If grade <= 50: ~write here ~ Print(grade)
Now I should fill that space with something to make it correct. I tried “else:” and that didn’t work, i also tried “pass” but that returned wrong too. I wish i could provide screenshots to make it more clear but the community doesn’t accept it.
submitted by /u/A-smoking-stranger
[link] [comments]
r/learnpython So the task is the following:- “ complete the code to iterate through the grades list and display only values greater than 50 “ For grade in grades: If grade <= 50: ~write here ~ Print(grade) Now I should fill that space with something to make it correct. I tried “else:” and that didn’t work, i also tried “pass” but that returned wrong too. I wish i could provide screenshots to make it more clear but the community doesn’t accept it. submitted by /u/A-smoking-stranger [link] [comments]
So the task is the following:-
“ complete the code to iterate through the grades list and display only values greater than 50 “
For grade in grades: If grade <= 50: ~write here ~ Print(grade)
Now I should fill that space with something to make it correct. I tried “else:” and that didn’t work, i also tried “pass” but that returned wrong too. I wish i could provide screenshots to make it more clear but the community doesn’t accept it.
submitted by /u/A-smoking-stranger
[link] [comments]