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