Answers for "deine dict with same values"

0

deine dict with same values

>>> v = 12
>>> d = {k:v for k in 'abfhp'}
>>> print d
{'a': 12, 'h': 12, 'b': 12, 'p': 12, 'f': 12}
Posted by: Guest on September-13-2021

Code answers related to "deine dict with same values"

Python Answers by Framework

Browse Popular Code Answers by Language