Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyStack
#python 3.6.9 #PyStack: example of Python stack #this code is created by Rezaul Hoque on May 07,2022; #contact:jewelmrh@yahoo.com;Dhaka,Bangladesh;https://rezaulhoque.wordpress.com,https://hoquestake.blogspot.com #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; star=[] for k in range(0,9): if k%2==0: star.append('<') star.append('<') star.append('<') star.append('<') star.append('<') star.append('<') star.append('<') star.append('<') star.append('<') else: star.append('>') star.append('>') star.append('>') star.append('>') star.append('>') star.append('>') star.append('>') star.append('>') star.append('>') if k%2==0: print(star.pop()*9) else: print(star.pop()*9)
run
|
edit
|
history
|
help
0
Name
PyQueue
Lawrence.py
H
Bisection method
linked_lists_2
pytest
oops1.py
31 dec string
Contact Class