diff --git a/python-pattern/pyramid_pattern.py b/python-pattern/pyramid_pattern.py new file mode 100644 index 0000000..87aeddb --- /dev/null +++ b/python-pattern/pyramid_pattern.py @@ -0,0 +1,11 @@ +# Simple program to print the pyramid pattern in python +# input : +# Enter a number3 +# Output: +# +# * +# * * +# * * * +a = int(input("Enter a number")) +for i in range(1, a+1): + print(" " * (a - i), "* " * i) \ No newline at end of file