Ответ:
a = int(input("a= "))
q = int(input("q= "))
n = int(input("n= "))
list1 = []
for x in range(0,n):
if len(list1) == 0:
list1.append(a)
else:
list1.append(list1[-1]*q)
print(str(list1))
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a = int(input("a= "))
q = int(input("q= "))
n = int(input("n= "))
list1 = []
for x in range(0,n):
if len(list1) == 0:
list1.append(a)
else:
list1.append(list1[-1]*q)
print(str(list1))
Объяснение: