Answer to Question #251099 in Python for reese

Question #251099

 Calculate the first 50 perfect cubes and store them in a list. Do not calculate them individually with fifty separate calculations. Use a loop. Each time through the loop, the program should calculate a perfect cube and append it to the list. 2. Use another loop to traverse the list and display the numbers in order.


1
Expert's answer
2021-10-14T04:49:31-0400
for i in (perfectCubes=[c**3 for c in range(50)]):
  print(i)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS