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
Ej2_python_204676887
Linear search
H.W5
f strings 2
reverse Aufgabe
khud ki kalakari
PyDIP
fb_series
Fiboncaci series in recursion
.....✓[Guess the number]®®®®®®®•$$$$✓.....