Question: Python Programming Consider this function definition: def mk_name(fn,ln,prefix): return .join((prefix, fn, ln)) We have a tuple t defined as (Albert, Einstein, Dr.). Which of

Python Programming

Consider this function definition:

def mk_name(fn,ln,prefix):

return " ".join((prefix, fn, ln))

We have a tuple t defined as ("Albert", "Einstein", "Dr."). Which of the following expressions returns string "Dr. Albert Einstein" ?

1. mk_name(t[2], t[0], t[1])

2. mk_name(t[0], t[1], t[2])

3. mk_name(t[0], ln=t[1], prefix=t[2])

4. mk_name(*t)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!