/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
>>> n [1, 2, 5, 10, 3, 100, 9, 24] >>> n1 = [] >>> for i in n: ... if i < 5: continue ... n1.append(i) ... >>> n1 [5, 10, 100, 9, 24] >>> n = n1