From 5b09aa4003ff9eb0ae385218f423122a9105f4d8 Mon Sep 17 00:00:00 2001 From: Maryam M <134219785+MaryamMhmdB@users.noreply.github.com> Date: Sat, 17 Feb 2024 05:14:39 +0300 Subject: [PATCH] MaryamMhmdB / Level-1.1 --- task 1.1 .py | 6 ++++++ task 1.1 bounce .py | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 task 1.1 .py create mode 100644 task 1.1 bounce .py diff --git a/task 1.1 .py b/task 1.1 .py new file mode 100644 index 0000000..eded3d1 --- /dev/null +++ b/task 1.1 .py @@ -0,0 +1,6 @@ +def print_star(y): + for i in range(1,y+1): + print("*" * i) + +l = int(input("Enter the size of the Staircase: ")) +print_star(l) \ No newline at end of file diff --git a/task 1.1 bounce .py b/task 1.1 bounce .py new file mode 100644 index 0000000..39936f2 --- /dev/null +++ b/task 1.1 bounce .py @@ -0,0 +1,8 @@ +def print_stair(x): + for i in range(1, x+1): + sp = " "*(x-i) + st = "*"*i + print(sp + st + " " + st) + +z=int(input("Enter size of the staircase:")) +print_stair(z) \ No newline at end of file