Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Boauth
#Python 2.7.17 #Boauth: use of different dictionary methods #this code is created by Rezaul Hoque on October 22,2021;contact: jewelmrh@yahoo.com #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; boauth= { "Kim" : "Rudyard Kipling", "Michael Strogoff": "Jules Verne", "Sonar Kella" : "Satyajit Ray"} print boauth x=boauth.items() y=dict(x) print y y.update({" The Jungle Book":"Rudyard Kipling"}) z=y.copy() print z g=z.get("Kim") print g z.pop("Kim") print z z.clear() print "\nAfter clear z:\n" print z z={ "Kim" : {"Rudyard Kipling ":" Penguin "},"Michael Strogoff": {" Jules Verne":"Penguin "}," Sonar Kella":{"Satyajit Roy":"ABP"}} for p,q in z.items(): print p,q print boauth["Kim"]
run
|
edit
|
history
|
help
0
epicoaosdsoasd
PyProperty
Filter dictionaries with specific keys
Date time
Dictionary - convert to lowercase
e742c63f03ab602f2b38433ffc28b5145ba1332d
Gettinginput from users
Shabnam_name_checker
Recurring function checker
NewFoodTipper