Challenge 6: List of Cubes
In the previous challenge, you created a list containing squares. Now let's try to generate a list containing cubes of numbers.
We'll cover the following...
Problem Statement
Given a getCube()
function, create a list with the cubes of the first 20 numbers.
Input
An empty list
Output
An updated list with the cube of each value in the list
Access this course and 1400+ top-rated courses and projects.