Odoo Technical

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Using the "pop" method on a dictionary in python is an appropriate way to remove a key-value pair.

Avatar
Nithya

Using the "pop" method on a dictionary in python is an appropriate way to remove a key-value pair.

Avatar
Discard
1 Answer
0
Avatar
Keerthana
Best Answer

For example: 
values = {'name': 'Keerthana', 'age': 20, 'designation': Developer}

values.pop(‘designation', None)

output: values = {'name': 'Keerthana', 'age': 20}


Avatar
Discard