Question
this is rquirement for all questions Make sure to validate user input for data type, value range and other problem requirements Print output that
"" this is rquirement for all questions Make sure to validate user input for data type, value range and other problem requirements Print output that clearly explains what is being printed (where necessary) o In other words, dont just print a 5 unless its clear what that 5 represents. Import statements should be immediately after the program docstring Make sure to include # line comments (just a few in each program, dont go crazy) Use snake_case (lower case plus underscores) for variables CONSTANT variables must be all upper case and immediately following any import statements Do NOT use functions for this assignment. Modules Allowed You may only import the following modules into your programs and use their methods and attributes, unless first receiving special (and unlikely) permission from your facilitator: math os re string sy """" the question is : The following includes concepts taught in Chapter 4 3.2: Write a Python program does all the following steps: a. Create a docstring constant with 3 sentence strings b. Convert the docstring to a LIST with one element for each sentence in the docstring. c. Using a loop calculate the number of: uppercase letters lowercase letters digits punctuation characters Spaces are NOT considered punctuation. d. Output the results from each loop in columns that are neatly formatted, centered, labeled, and underlined. Use Python 3's fStrings or format() to solve. Follow the output format in the example below. The first column is the sentence number but starts counting at 1. as humans do. Hints: There is a nice function to split a string into a list based on a given delimiter Check out the library attribute string.punctuation for help in solving this problem. The centering format character is a ^ Example using first string from the tuple: The rain in #Spain in 2019, rained "mainly' on the plain. Output Example (input 1 is in bold for illustration purposes): # # Upper # Lower # Digits # Punct. - ------- -------- -------- -------- 1 2 36 4 5 2 7 26 0 7 3 11 18 18 2 please do not use the function because I got an answer from you with function(def),and we do need not using function
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