for loops Flashcards

1
Q

Code that produces multiples of 3, starting at 3 and containing only 20 values.

A

multiples_3 = [x * 3 for x in range(1, 21)]

print(multiples_3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly