Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started