Curso_Intensivo_de_PYTHON/chapter_08/user_profile.py
2023-06-02 17:22:53 +02:00

10 lines
378 B
Python

def build_profile(first, last, **user_info):
"""Build a dictionary containing everything we know about a user."""
user_info['first_name'] = first
user_info['last_name'] = last
return user_info
user_profile = build_profile('albert', 'einstein',
location='princeton',
field='physics')
print(user_profile)