Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
You mean to filter all the numbers in range -25 ~ 25 that gives 2 remainder when the number is divided by 3? Use list comprehension to generate a new list, filter qualified numbers by using `if` clause inside the comprehension. Show me what you tried, I'll help you out then.
9th Apr 2021, 1:25 PM
Ipang