DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
print all elements of dictionary except one in python
[v for k,v in d.iteritems() if k not in (2,5)] # @Zenonymous
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#print
#elements
#dictionary
#python
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit