Anyone can help me with this exercise?

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

for __ in range(__,__):

The first clue is x=1 thru x=10. They have chosen the variable name for us.

for x ...

A range() object starts from zero, by default, but the question asks for values from 1 to 10, so what will be the first value?

A range does not include the upper bound; that means instead of 10 for the second argument, what will we use?

Lastly, we need to fill in the print statement. There is already an example in the question. What would that be?


Thank you for helping

1 Like