Quick actions

cmd+k|ctrl+k

Navigation

Languages

Dictionary Method2

Snippet info

Language

Python

Visibility

public

Author

dharmendrarah

Created

2023-01-07T11:18:30.856905Z

Updated

2023-01-07T11:18:30.856905Z


user={
    "basket":[1,2,3],
    "greet":"hello",
    "age":29
    
}
print("age" in user.keys())
print("hello" in user.values())
print(user.items())
print(user.pop("age"))
print(user.popitem())
print(user.update({"greet":"GoodMorning"}))
print(user)
print(user.update({"ages":22}))
print(user)
INFO