Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Python 3: Queue
#python 3.5.2 def createEmptyQ(): return [] def insertQ(item,q): q.append(item) def popQ(q): q.pop(0) def lenQ(q): return len(q) def isEmptyQ(q): return len(q)==0 aq=createEmptyQ() insertQ(12,aq) insertQ(234,aq) print(aq) print(lenQ(aq)) popQ(aq) print(aq) print(lenQ(aq)) popQ(aq) print(aq) print(lenQ(aq))
run
|
edit
|
history
|
help
0
single inheritance
Primes finding algorithm
Python
Decimal, Octal, Hexadecimal and Binary Format
Ciklusok
количество 1 и 0 в последовательности чисел до n
multiple inheritance
Pej
shivareddy error
Ok