Q. What does fromkeys() method do?
Answer =
The fromkeys() method is used to create a new dictionary from a sequence containing all the keys and a common value, which will be assigned to all the keys.
This method is used as :
dict.fromkeys(<key sequence>, [<value>])
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )