Sample Solution
The following shows one way to solve this problem. It is not the only way this problem can be solved.
prepare02_sample.py
"""
Author: Brother Burton
Purpose: Display text to the screen.
"""
first = input("What is your first name? ")
last = input("What is your last name? ")
# This is for the the first part of the activity
print(f"Your name is {last}, {first} {last}.")
# This is for the the second part, where we adjust the capitalization
print(f"Your name is {last.title()}, {first.title()} {last.title()}.")
# Be aware that there are many ways to do the formatting of that line, such as:
# print("Your name is " + last + ", " + first + " " + last + ".")
# print("Your name is {}, {} {}.".format(last, first, last))
# print("Your name is {0}, {1} {0}.".format(last, first))
"""
Author: Brother Burton
Purpose: Display text to the screen.
"""
first = input("What is your first name? ")
last = input("What is your last name? ")
# This is for the the first part of the activity
print(f"Your name is {last}, {first} {last}.")
# This is for the the second part, where we adjust the capitalization
print(f"Your name is {last.title()}, {first.title()} {last.title()}.")
# Be aware that there are many ways to do the formatting of that line, such as:
# print("Your name is " + last + ", " + first + " " + last + ".")
# print("Your name is {}, {} {}.".format(last, first, last))
# print("Your name is {0}, {1} {0}.".format(last, first))
Download: prepare02_sample.py