Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
popitem
popitem
Remove and return a (key, value) pair from the dictionary.
Python 3.13
1
dict
.
popitem
(
)
Examples
Python 3.13
1
2
a
=
{
'x'
:
1
,
'y'
:
2
}
a
.
popitem
(
)
('x', 1)