Answered step by step
Verified Expert Solution
Link Copied!

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 ... 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_2

Step: 3

blur-text-image_3

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

Starting Out With Python Global Edition

Authors: Tony Gaddis

4th Edition

1292225750, 9781292225753

More Books

Students also viewed these Programming questions

Question

k(x) = -18(1/3)x Graph the equation by hand.

Answered: 1 week ago

Question

What is a software requirement?

Answered: 1 week ago