SplitPDFFile 2 To 22
SplitPDFFile 2 To 22
teachers={“Rajeev”:”Math”, “APA”:”Physics”,”APS”:”Chemistry:”SB”:”CS”}
<dictionary>[<key>] = <value>
By passing List
Nesting in Dictionary
look at the following example carefully in which element of a dictionary is
a dictionary itself.
WAP to create a dictionary containing names of employee as key and their salary as
value. Output
False
json.dumps(<>,indent=<n>)
Here a dictionary is
created of words
and their frequency.
In the above given example, you can see that change is done in
the values of similar keys whereas dissimilar keys got joined with
their values.