Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Popitem() Method
course content

Зміст курсу

Python Data Structures

Popitem() MethodPopitem() Method

Dictionaries also have a popitem() method that removes and returns the last key-value pair.

Завдання

Consider the dictionary below:

Remove the last three entries from the dictionary using the popitem() method.

Все було зрозуміло?

Секція 2. Розділ 7
toggle bottom row
some-alt