remove random character from a dictionary python

Solutions on MaxInterview for remove random character from a dictionary python by the best coders in the world

showing results for - "remove random character from a dictionary python"
Samantha
28 Apr 2020
1#the pop.item() method removes the last inserted item in Dictionary
2#In python versions lower than 3.7 will remove a RANDOM ITEM
3
4thisdict = {
5  "brand": "Ford",
6  "model": "Mustang",
7  "year": 1964
8}
9thisdict.popitem()
10print(thisdict)