From b02e5fb242ead126a272b0cb76c23155a12f82bb Mon Sep 17 00:00:00 2001 From: Gwala-14 <115860146+Gwala-14@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:06:52 +0530 Subject: [PATCH] star_pattern_input Through this code we can take the height of the pattern as input from the user and print the pattern. :) --- star_pattern.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 star_pattern.py diff --git a/star_pattern.py b/star_pattern.py new file mode 100644 index 0000000..1c87588 --- /dev/null +++ b/star_pattern.py @@ -0,0 +1,5 @@ +n = int(input("Enter the height for the pattern")) +for i in range(n): + for j in range(i+1): + print("*",end = "") + print("\r")