Added week 7
This commit is contained in:
16
week7/Assignment/ex5.py
Normal file
16
week7/Assignment/ex5.py
Normal file
@@ -0,0 +1,16 @@
|
||||
def main():
|
||||
print('==Assignment 5==')
|
||||
|
||||
a,s = 5,1 #Custom star nums using a(max width) and s(step)
|
||||
|
||||
c,r = 1,False
|
||||
while c>0:
|
||||
print("*"*c)
|
||||
c+= -s if r else s
|
||||
r = r or c>=a
|
||||
|
||||
print('==End Of Assi5==')
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user