Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

3. Yesim is really supportive when other students are upset.

Answered: 1 week ago