What is possible key/value delimiter in Python dictionary?



You can use any hashable object like int, string, etc as a key in a python dict. You need to separate it from the value using the ':' delimiter. The value can be any type of object. Consecutive key value pairs must be separated by a comma.

Updated on: 2019-07-30T22:30:22+05:30

469 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements