repl.it
@talha131/

Python: Iterate Over An Array And Remove Elements

Python

https://www.oncrashreboot.com/iterate-over-an-array-and-remove-elements

fork
loading
Files
  • main.py
main.py
1
2
3
eg = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]
result = [x for x in eg if x < 99]
print(result)