Completed 4-8 Cubes
This commit is contained in:
parent
9981331fda
commit
12d60b76bb
5
Chapter_04/4-8_cubes.py
Normal file
5
Chapter_04/4-8_cubes.py
Normal file
@ -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)
|
||||||
Loading…
x
Reference in New Issue
Block a user