Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions