Update the dictionary

Question

Alexis is 23 years old. Add this to her record existing as:
my_record={‘name’: ‘alexis’,
‘city’: ‘georgia’}

in progress 0
YashikaKhurana 55 years 1 Answer 713 views Master 0

Answer ( 1 )

  1. The dictionary can be updated as->
    my_record.update({“age”: 23})

Leave an answer

Browse
Browse