- 2

A set of marks that students have scored in the last semester was given below. Write code to determine how many are 90 or above.

Please tell me

5th Sep 2021, 11:42 AM
Phanikrishna
Phanikrishna - avatar
6 Respuestas
+ 3
And I also forgot that americans are experts in sarcasm.
5th Sep 2021, 1:34 PM
Prerna 💞
+ 3
Marks=[90, 23, 95, 61, 80, 70, 92] j=0 for i in Marks: if i >=90: j++ print ("Number of students having score 90 or above is ",j)
5th Sep 2021, 11:53 AM
Prerna 💞
+ 3
You can use the filter function with a lambda, passing the marks to it and then get the length of the resulting filter object converted to a list. len(list(filter(lambda x: x >= 90, marks)))
5th Sep 2021, 12:02 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Prerna 💞 congratulations for spoon-feeding the original poster
5th Sep 2021, 12:47 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
0
I forgot that indians don't understand sarcasm.
5th Sep 2021, 1:20 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
- 2
Means what
5th Sep 2021, 12:48 PM
Phanikrishna
Phanikrishna - avatar