Python Delete Dict by Key

August 24, 2018
find_items = { 'jake': 10, 'sam': 20 }
if 'jake' in find_items:
  del find_items['jake']
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.