Python Program: Create a dictionary with keys ‘ firstname ’, ‘ lastname ’ and ‘ age ’, with some values assigned to each Add an additional key ‘ address ’ to the dictionary Print out the list of keys...


Python Program:



  • Create a dictionary with keys ‘firstname’, ‘lastname’ and ‘age’, with some values assigned to each

  • Add an additional key ‘address’ to the dictionary

  • Print out the list of keys of your dictionary

  • Create a ‘name’ key with the value as a string containing both first and last name keys. Is it possible to do this without typing in your name once again? If so make the modification, and when done remove the two other older keys.



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here