I just started learning python and i need help with a task. /u/A-smoking-stranger Python Education

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] 

Leave a Reply

Your email address will not be published. Required fields are marked *