1)
a = [i for i in range(1, 15)]
print(a)
2)
a = [i for i in range(2, 30, 2)]
3)
a = [i for i in range(1, 30, 2)]
4)
a = [i for i in range(7, 105, 7)]
5)
a = [2]
for i in range(14):
a = a + a[-1]*2
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1)
a = [i for i in range(1, 15)]
print(a)
2)
a = [i for i in range(2, 30, 2)]
print(a)
3)
a = [i for i in range(1, 30, 2)]
print(a)
4)
a = [i for i in range(7, 105, 7)]
print(a)
5)
a = [2]
for i in range(14):
a = a + a[-1]*2
print(a)