Question: IN python Define a string with value It was a bright cold day in April, and the clocks were striking thirteen. Then calculate the following
IN python
Define a string with value "It was a bright cold day in April, and the clocks were striking thirteen." Then calculate the following things listed below. Note that your code should work with any string value. If you manually count the letters and hard code the occurrences and numbers, you will lose at least 20 points.
Find and print the most used character and its occurrences, NOT including punctuations and white spaces. Note that the characters are case sensitive, e.g., A is different from a.
Count the total number of words, NOT including punctuations and white spaces. Please do not count the number of spaces, i.e., both "Hello World" and "Hello World" have 2 words.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
