Paw D
30. Write a program to print cubes of first 15 natural numbers.
Answers
Answered by
5
cubes_15 = [str(n * n * n) for n in range(1, 15 + 1)]
print("\n".join(cubes_15))
Similar questions
English,
4 months ago
Math,
4 months ago
Computer Science,
8 months ago
Computer Science,
8 months ago
Social Sciences,
1 year ago
Biology,
1 year ago
History,
1 year ago