-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPattern_3.py
36 lines (34 loc) · 893 Bytes
/
Pattern_3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
userInput = 10
for i in range(userInput):
for s in range (userInput - i) : # s is equivalent to to spaces
print(" ", end="") # 3 Spaces Make Bomerrang
for j in range((i * 2) - 1):
print("*", end="")
print()
for i in range(userInput, 0, -1):
for s in range (userInput - i) :
print(" ", end="")
for j in range((i * 2) - 1):
print("*", end="")
print()
"""
*
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*****************
***************
*************
***********
*********
*******
*****
***
*
"""