Question: 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
Get step-by-step solutions from verified subject matter experts
