.
This commit is contained in:
7
CS1032/lecture-2023-11-23/pat.py
Normal file
7
CS1032/lecture-2023-11-23/pat.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def l(n=9):
|
||||
for x in range(1, n):
|
||||
print(" " * (x % 2), "*")
|
||||
|
||||
def r(n=5):
|
||||
for x in range(n, -1, -1):
|
||||
print("*" * (x * 2 + 1))
|
||||
Reference in New Issue
Block a user