oqueeh
.net
All topics
>
Python
Pop or dequee item from tuple in Python
1. Pop
t1
=
(
0
,
1
,
2
,
3
,
4
)
t1
,
v
=
t1
[:
-
1
],
t1
[
-
1
]
2. Dequee
t1
=
(
0
,
1
,
2
,
3
,
4
)
t1
,
v
=
t1
[
1
:],
t1
[
0
]