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

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
Get step-by-step solutions from verified subject matter experts
