I have the following list
j=[4,5,6,7,1,3,7,5]
What\'s the simplest way to return [5,5,6,7,7] being the elements in j greater o
[5,5,6,7,7]
You can use a list comprehension:
[x for x in j if x >= 5]