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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started