write a program to print first 10 powers of 3
Answers
Answered by
0
Answer:
The codes are:
_____________________
for i in range(1,11):
print (3**i)
____________________
If you're not able to understand it properly or just want to verify it, consider viewing the image.
Attachments:
Answered by
1
powers = [str(3 ** n) for n in range(1, 11)]
print("\n".join(powers))
Similar questions