Question: Write a program that extracts the middle name of a person. Assume the person has a single middle name. Assume the first, middle and last

Write a program that extracts the middle name of a person.
Assume the person has a single middle name.
Assume the first, middle and last names are separated by spaces.
for example:
" Jaine Danger Doe "
Your program should extract and print "Danger".
This is using string functions in Python.
There can be leading and trailing spaces.

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!