From 8ddc005013e640b182912601b1456d8683083411 Mon Sep 17 00:00:00 2001 From: BUNNY2210 <72193129+BUNNY2210@users.noreply.github.com> Date: Fri, 2 Oct 2020 18:17:23 +0530 Subject: [PATCH] Create printing pattern --- printing pattern | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 printing pattern diff --git a/printing pattern b/printing pattern new file mode 100644 index 0000000..6be5002 --- /dev/null +++ b/printing pattern @@ -0,0 +1,5 @@ +rows = 5 +for row in range(1, rows+1): + for column in range(1, row + 1): + print(column, end=' ') + print("")