Question: Please use python language. 16. Write a program that creates four variables: section, time, prof, and days. Get the values for prof and days from

Please use python language.
Please use python language. 16. Write a program that creates four variables:
section, time, prof, and days. Get the values for prof and days

16. Write a program that creates four variables: section, time, prof, and days. Get the values for prof and days from the user by asking for the last name of the professor and the days of the week (MW or TH). Your program should then use branching to set the values of section and time according to the following table. After branching, then print all the information about the class (see sample run below) using the four variables. No error checking needed. (10 pts) Sample run 7. Write a program that asks the user for words until the user enters a blank line, which is a return with no input (i.e., the empty string). Then the program should print out the longest and the shortest words entered. Use the appropriate loop. Create any variables that you need. No error checking is required (for the user putting two or more words on a line or other weirdness). (10 pts)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!