Computer Science, asked by MouniRoy5100, 8 months ago

Write a python script that prints the first 10 cube numbers (x**3), starting with x=1 and ending with x=10.

Answers

Answered by sindooraprakash10
4

Answer:

for i in range(1, 11):

i=i**3

print(i)

Explanation:

Answered by PravinRatta
1

The python script that prints the first 10 cube numbers (x^{3} ), starting with x=1 and ending with x=10 is:

cube_x = [ x ]

for number in range(1, 11):

cube = number^{3}

cube_x.append(cube)

for cube in cube_x:

print(cube)

start x = 1 ; end x=10.

The output will come as:

1^{3}  = 1, 2^{3}  = 8, 3^{3}  = 27, 4^{3} = 64, 5^{3}  = 125, 6^{3} = 216,  7^{3} = 343, 8^{3} = 512, 9^{3}  = 729, 10^{3}  = 1000.

Similar questions