Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Write a program that lets the user enter their first name, last name, faculty, year of study, city/town, province and postal code, and
2. Write a program that lets the user enter their first name, last name, faculty, year of study, city/town, province and postal code, and then print them back to the screen with and without formatting: Tell the user what to enter and let the entry be made on the same line as the instruction during the run. Use the input() function to read each item entered and store it to a variable. Display each item on a separate line with a descriptive message, using a print () function for each one. Do this without f-strings. Display each item again, this time in the following manner, using f-strings: . Print the first letters of each name, one after the other. Print the first two letters of the faculty followed by the year on a single line. Print the first three letters of the city/town, followed by the first two letters of the province and the first three characters of the postal code, all on a single line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres a Python program that accomplishes the task python Get user input firstname ...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