a) [(2**x) for x in range(0, 13)]
b) [(x**2) for x in range(1, 13)]
c) [(2**x) for x in range(1, 13)]
d) [(x**2) for x in range(0, 13)]
Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!