From def837a409a03992716cf001a06f2fd36dd10e9a Mon Sep 17 00:00:00 2001 From: "E. SALIM" <85863845+Salimaja@users.noreply.github.com> Date: Sat, 16 Oct 2021 08:30:29 +0700 Subject: [PATCH] Create Pyramid.py --- Patterns/Pyramid.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Patterns/Pyramid.py diff --git a/Patterns/Pyramid.py b/Patterns/Pyramid.py new file mode 100644 index 00000000..a56cbce7 --- /dev/null +++ b/Patterns/Pyramid.py @@ -0,0 +1,5 @@ +rows = 5 +for i in range(1, rows + 1): + for j in range(1, i + 1): + print(j, end=' ') + print('')