my_dict = {"name": "John", "age": 25, "gender": "Male"} removed_item = my_dict.pop("age") print(removed_item) # خروجی: 25 print(my_dict) # خروجی: {'name': 'John', 'gender': 'Male'}