LearnPy Hub
← Functions problems
Medium

Profile With **kwargs

Write profile(**info) that prints each key: value sorted by key. Read lines key=value until END, collect them into a dictionary and call profile(**d).

Input

Lines, then END.

Output

Lines.

Sample 1

Input
name=Mim
age=20
END
Output
age: 20
name: Mim

Sample 2

Input
x=1
END
Output
x: 1
solution.py
Output appears here
Profile With **kwargs · Python practice problem · LearnPy Hub