Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to type a dict in python

from typing import Dict
_dict: Dict[key_type, value_type] = {}
 # Ex: Dict[int, str]
 
PREVIOUS NEXT
Tagged: #type #dict #python
ADD COMMENT
Topic
Name
9+8 =