Methods in Dictionary:
dict={1:"Hello",2:"Guys",3:"How",4:"are",5:"You"}print(dict)
1.get() = returns the value to the specified key.
dict={1:"Hello",2:"Guys",3:"How",4:"are",5:"You"}print(dict.get(1))
2.values()=returns all values of the dictionary.
0 Comments
Doubts? Please let our team know So that we can serve you better.