Answers for "dict comprehensions"

0

dict comprehensions

>>> print {i : chr(65+i) for i in range(4)}
{0 : 'A', 1 : 'B', 2 : 'C', 3 : 'D'}
Posted by: Guest on September-14-2021

Code answers related to "dict comprehensions"

Python Answers by Framework

Browse Popular Code Answers by Language