Sometime we have to provide list inside dictionary to give many option to key.
Example. Bank is providing different loan option such as 1lac,10lac,50lac.
So,what is purpose of this in applications ?
In a website there is one service but users are many. example, website = {“service”:”music”,”users”: [“aman”,”raj”,”jack”]}
# summarize the order
print(“The users are: “)
for s in website[“users”]:
print(“\t”+s)
Output: The users are:
aman
raj
jack