juniperrr — 12/26/2023, 7:17:51 PM

poggers coding tip of the day

in python, you can use a list comprehension to quickly create & populate lists:

arr = [x for x in range(10) if x % 2 == 0]

this will create a list called arr that only has even numbers in it

♥ 1 ↩ 0 💬 0 comments

comments

no comments