3
answers
I have a list of numbers and I want to filter out all numbers less than 10. I know I can use a for loop, but I've heard list comprehensions are more Pythonic. Can someone show me how?
1 question
I have a list of numbers and I want to filter out all numbers less than 10. I know I can use a for loop, but I've heard list comprehensions are more Pythonic. Can someone show me how?