Objective
Create a Python program with a function that receives any amount of keyword arguments using **kwargs.
Instructions
- Read an integer
nand thennlines with the formatkey=value. Store them in a dictionary (split each line withsplit("=", 1)). - Define
def record(**data), which shows onekey: valueline for each item, in the order they arrived, and finallyFields: N. - Call the function unpacking the dictionary with
record(**dictionary).
3
name=Ana
city=Madrid
age=30
name: Ana
city: Madrid
age: 30
Fields: 3
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise