python_exercises/thinkcspy/Chapter-4-Exercises/problem4.py

9 lines
No EOL
208 B
Python

# Runestone.Academy thinkcspy course
# Chapter 4
# Problem 4
for i in [12, 10, 32, 3, 66, 17, 42, 99, 20]:
print(i)
for i in [12, 10, 32, 3, 66, 17, 42, 99, 20]:
print("The square of", i,"is", i**2)