Computer >> Computer tutorials >  >> Programming >> Python

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.