Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
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