diff --git a/t07numberpatterns_squares.py b/t07numberpatterns_squares.py index 7d9968d..2e1339b 100644 --- a/t07numberpatterns_squares.py +++ b/t07numberpatterns_squares.py @@ -1,3 +1,9 @@ # Generate squares number pattern from 1 to 10 # 1 4 9 16 25 ... +START = 1 +END = 10 +num = 1 + +for num in range(START, END+1): + print(num**2, end='')