Map/filter | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Map/filter

in the question to fill the filter for numbers greater than 4, the solution is x<5. why? isnt it suppost to be x=>5?

31st Jan 2017, 6:41 AM
Tomer shay-mor
Tomer shay-mor - avatar
3 Answers
+ 3
The question is: Fill in the blanks to **remove** all items that are greater than 4 from the list (emphasis added). So you actually want to preserve those numbers which are <=4, or equivalently, <5. So the answer is <5.
31st Jan 2017, 7:37 AM
Álvaro
+ 1
oh, ok thank you very much
31st Jan 2017, 8:05 AM
Tomer shay-mor
Tomer shay-mor - avatar
0
Answer is less then 5. because you want remove all the number which are greater than 4 and 5 is also greater then 4.so the answer is x>5 .
8th Apr 2017, 1:42 PM
Shruti Shinde
Shruti Shinde - avatar