Answers for "python eliminar elementos de un diccionario"

0

python eliminar elementos de un diccionario

>>> meal = {'fats': 10, 'proteins': 10, 'carbohydrates': 80}
>>> [meal.pop(key) for key in ['fats', 'proteins']]
[10, 10]
>>> meal
{'carbohydrates': 80}
Posted by: Guest on October-20-2020

Code answers related to "python eliminar elementos de un diccionario"

Python Answers by Framework

Browse Popular Code Answers by Language