Write A List Comprehension To Produce The List 1 2 4 8 16212 #440
Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 List Comprehension - Python List Comprehension - Quiz No.3.
Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].
[(2**x) for x in range(0, 13)]
[(x**2) for x in range(1, 13)]
[(2**x) for x in range(1, 13)]
[(x**2) for x in range(0, 13)]