Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyDeque
#python 3.6.9 #PyDeque #this code is created by Rezaul Hoque on May 10,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; import collections print('>'*30) print('<'*30) a=collections.deque("Python deque example",30) b=collections.deque("May 10,2022", 11) for k in a: print(k,end='') a.append('*') a.extend('#') print ('\n') for k in a: print(k,end='') a.appendleft('*') a.extendleft('#') print ('\n') for k in a: print(k,end='') a.pop() a.pop() a.popleft() a.popleft() print ('\n') for k in a: print(k,end='') a.remove('y') print ('\n') for k in a: print(k,end='') print ('\n') for k in b: print(k,end='') print ('\n') print('>'*30) print ('<'*30)
run
|
edit
|
history
|
help
0
Python.py
события
Game2
abc
sum of odd numbers
Mengira luas dan perimeter segi tiga
My first code
Prime Factors
Emails_Python
PyRegBackRef