Question: To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such

To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such as index or count). Instead, write your own control structures. The only built-in functions you are allowed to use are ones we learned in class such as append, len, range, print, and input.

To obtain marks for the below exercises, do not use any Python

4) Write a program that initializes the below list of numbers myList. Your program will then compute the cube of each value in myList, will store each cube in a new list such that the list of cubes is the reverse order of the numbers in myList. Your program will then print out the new list of cubes. The list of numbers myList can be initialized as the following: myList = [1,2,3,4,5] Sample run: The cubes of the numbers are: [125, 64, 27, 8, 1]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!