Expected Output:
[4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
Hint:
step = 2
range()
solution:
print(list(range(4, 30, 2)))
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Hint:
step = 2
to get even numbers.range()
function to a list constructor to create a listsolution:
need an explanation for this answer? contact us directly to get an explanation for this answer