re: Which types of loops are most popular in the programming languages you use? VIEW POST

FULL DISCUSSION
 

Python got those list comprehensions 👀

numbers = [1, 2, 3, 4, ...]
odds = [
    number
    for number in numbers
    if number % 2 == 1
]
code of conduct - report abuse