diff --git a/Patterns/Pyramid.py b/Patterns/Pyramid.py new file mode 100644 index 00000000..a56cbce7 --- /dev/null +++ b/Patterns/Pyramid.py @@ -0,0 +1,5 @@ +rows = 5 +for i in range(1, rows + 1): + for j in range(1, i + 1): + print(j, end=' ') + print('')