Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dict typing python

from typing import dict
my_dict : dict[key_type, value_type] ={}
# Exemple:
dict1 :dict[str, int] = {
  "zero" : 0,
  "one"  : 1,
  "two"  : 3
}
 
PREVIOUS NEXT
Tagged: #dict #typing #python
ADD COMMENT
Topic
Name
3+1 =