From 208c7dec6d0b046092a2d0bbb2aaee9f610ea703 Mon Sep 17 00:00:00 2001 From: asdiadenpotatisen <69951589+asdiadenpotatisen@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:57:04 +0800 Subject: [PATCH] Update t07numberpatterns_squares.py --- t07numberpatterns_squares.py | 6 ++++++ 1 file changed, 6 insertions(+) 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='')