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: 30-Jul-2019


Kickstart Your Career

Get certified by completing the course

Get Started