DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python delete from dictionary
my_dict
=
{
31
:
'a'
,
21
:
'b'
,
14
:
'c'
}
del
my_dict
[
31
]
print
(
my_dict
)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#python
#delete
#dictionary
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit