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
4
thermal_containers
PyClassBinSearch
Ozan Taşdemir 9/B 499
Calender 2019
Hello,world
pattern
Implement a stack by using an array
shuru12
Lesson 6 part b2