Get your own Python server Result Size: 625 x 565
x
 
newlist = [x for x in range(10) if x < 5]
print(newlist)
[0, 1, 2, 3, 4]