def build_profile(first, last, **user_info):
profile = {}
profile['first_name'] = first
profile['last_name'] = last
for key, value in user_info.items():
profile[key] = value
return profile
user_profile = build_profile('albert', 'einstein',
location='princeton',field='physics')
print(user_profile)
Hello guys! Just started studying python a week ago from the book "Python Crash Course", I have a little question about this program.
Why in the build_profile
they write location='princeton'
and not 'location' = 'princeton'