Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Debugging Exercise: You will have an error-filled Python programs, which you can download by clicking the link below. This program gets a string containing a

Debugging Exercise: You will have an error-filled Python programs, which you can download by clicking the link below. This program gets a string containing a persons first, middle, and last names, and then display their first, middle, and last initials. For example, if the user enters Matthew Kyle Turner, then the program should display M. K. T.

# Programming Exercise 8-1

def main(): # Receive user input full_name = input ('Enter your full name: ')

# Split according to spaces name = full_name.split(name)

# The first character of each name is an initial for string in name: print(string[1].upper(), sep='', end='') print('.', sep=' ', end='')

# Call the main function. main()

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago