Big family

Report a typo

It's a wedding day — two happy people are getting married.

We have a dictionary first_family that contains the names of the wife's family members. For example:

first_family = {"wife": "Janet", "wife's mother": "Katie", "wife's father": "George"}

And a similar dictionary second_family for the husband's family:

second_family = {"husband": "Leon", "husband's mother": "Eva", "husband's father": "Gaspard", "husband's sister": "Isabelle"}

Create a new dictionary that would contain information about the new family. Similar to the ones above, family members should be keys and their names should be values. First, update the new dictionary with elements from first_family and then from second_family. Don't forget to print it out.

Write a program in Python 3
# The following lines create dictionaries from the input. Do not modify them, please
first_family = json.loads(input())
second_family = json.loads(input())

# Work with the 'first_family' and 'second_family' and create a new dictionary
___

Create a free account to access the full topic