From 12d60b76bb7684376a886ed59976a3c50b713011 Mon Sep 17 00:00:00 2001 From: cheeks <134818917+leftovertoast@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:34:49 -0500 Subject: [PATCH] Completed 4-8 Cubes --- Chapter_04/4-8_cubes.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Chapter_04/4-8_cubes.py diff --git a/Chapter_04/4-8_cubes.py b/Chapter_04/4-8_cubes.py new file mode 100644 index 0000000..4c10a9f --- /dev/null +++ b/Chapter_04/4-8_cubes.py @@ -0,0 +1,5 @@ +# Exercise 4-8 Cubes +# Learning Objective: Print a list of 10 cubse from 1 - 10 utilizing for loop. + +values = [value**3 for value in range(1, 11)] +print(values) \ No newline at end of file