Skip to content

Commit 0a56a3e

Browse files
authored
Merge pull request openAOD#884 from anshyyy/anshyyy
Anshyyy
2 parents e8b1235 + b0d7b97 commit 0a56a3e

10 files changed

+106
-0
lines changed

Symbol Patterns/symbolpattern185.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
height = 5
2+
for i in range(0, height):
3+
print("*", end="")
4+
for j in range(0, height):
5+
if ((i == 0 or i == height - 1) or (i == height // 2 and j <= height // 2)):
6+
print("*", end="")
7+
else:
8+
continue
9+
print()

Symbol Patterns/symbolpattern186.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
height = 5
2+
for i in range(0, height):
3+
print("*", end="")
4+
for j in range(0, height):
5+
if ((i == 0) or (i == height // 2 and j <= height // 2)):
6+
print("*", end="")
7+
else:
8+
continue
9+
print()

Symbol Patterns/symbolpattern187.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
height = 5
2+
width = 2*height-1
3+
for i in range(0, height):
4+
for j in range(0, width-1):
5+
if ((i == 0 or i == height - 1) and (j == 0 or j == width - 2)):
6+
print(end=" ")
7+
elif (j == 0):
8+
print("*", end="")
9+
elif (i == 0 and j <= height):
10+
print("*", end="")
11+
elif (i == height // 2 and j > height // 2):
12+
print("*", end="")
13+
elif (i > height // 2 and j == width - 2):
14+
print("*", end="")
15+
elif (i == height - 1 and j < width - 1):
16+
print("*", end="")
17+
else:
18+
print(end=" ")
19+
print()

Symbol Patterns/symbolpattern188.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
height = 5
2+
for i in range(0,height) :
3+
print("*",end="")
4+
for j in range(0,height) :
5+
if ( (j == height - 1) or (i == height // 2) ):
6+
print("*",end="")
7+
else :
8+
print(end=" ")
9+
print()

Symbol Patterns/symbolpattern189.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
height = 5
2+
for i in range(0,height) :
3+
for j in range(0,height) :
4+
if ( i == 0 or i == height - 1 ):
5+
print("*",end="")
6+
elif ( j == height // 2 ) :
7+
print("*",end="")
8+
else :
9+
print(end=" ")
10+
print()

Symbol Patterns/symbolpattern190.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
height = 5
2+
for i in range(0,height) :
3+
for j in range(0,height) :
4+
if(i==0):
5+
print("*",end="")
6+
if ( i == height - 1 and (j > 0 and j < height - 1) ):
7+
print("*",end="")
8+
elif ( (j == height - 1 and i != height - 1) or (i > (height // 2) - 1 and j == 0 and i != height - 1) ) :
9+
print("*",end="")
10+
else :
11+
print(end=" ")
12+
print()

Symbol Patterns/symbolpattern191.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
height = 5
2+
half = height // 2
3+
dummy = half
4+
for i in range(0, height):
5+
print("*", end="")
6+
for j in range(0, half+1):
7+
if (j == abs(dummy)):
8+
print("*", end="")
9+
else:
10+
print(end=" ")
11+
print()
12+
dummy = dummy - 1

Symbol Patterns/symbolpattern192.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
height = 5
2+
for i in range(0, height):
3+
print("*", end="")
4+
for j in range(0, height+1):
5+
if (i == height - 1):
6+
print("*", end="")
7+
else:
8+
print(end=" ")
9+
print()

Symbol Patterns/symbolpattern193.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
height = 5
2+
counter = 0
3+
for i in range(0, height):
4+
print("*", end="")
5+
for j in range(0, height+1):
6+
if (j == height):
7+
print("*", end="")
8+
elif (j == counter or j == height - counter - 1):
9+
print("*", end="")
10+
else:
11+
print(end=" ")
12+
if(counter == height // 2):
13+
counter = -99999
14+
else:
15+
counter = counter + 1
16+
17+
print()

Symbol Patterns/symbolpattern194.py

Whitespace-only changes.

0 commit comments

Comments
 (0)