Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USING PYTHON 2 Write a function named as 'build_profile for building a dictionary containing everything we know about a user. This function has four arguments.
USING PYTHON
2 Write a function named as 'build_profile for building a dictionary containing everything we know about a user. This function has four arguments. The first three arguments accept user's name including the first name, the middle name, and the last name. The middle name should be set to be empty string. The fourth argument of this function is an arbitrary argument that can accept any number of keyword pairs. For example, when we call this function like build_profile('Peter', "Hendrix', location = 'China', age = 23), it will return a dictionary as {'first name': 'Peter', 'last name': = 'Hendrix', 'location': 'China', 'age: 23). Call this function twice by passing different name and different numbers of keyword pairs. (15.05)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started