Write a python program to generate the following series:-
1,2,4,8,16...n
If you give right answer, I will mark as brainliest or else I will report the answer
AryaPratap18:
while true :
Answers
Answered by
4
Answer:
a=int(input()) while a<=10000: print (a) a=a*2
Answered by
0
Answer:
def generateSequence(n):
i = 1
items = []
for _ in range(n):
items.append(i)
i *= 2
return items
print(generateSequence(6))
Similar questions