Challenge: List of Cubes

Test yourself and implement what you have learned so far in this chapter.

Problem statement

You have to create and populate a list of cubes given a list of integers.


The input is the list integers.

integers has already been declared for you.


The output will be cubes which should include the cubes of the items in integers.

Sample Input


Sample Output


Test yourself

Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck!

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy