juniperr @juniperr

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

Dec 26, 2023, 7:17 PM
0

comments