Question: Q1: write a simple python code Asks the user to enter any URL for a website (webpage), read the contents of that page, and prints

Q1: write a simple python code Asks the user to enter any URL for a website (webpage), read the contents of that page, and prints out on the screen all of: a. [0.5 Point] Total number of lower letters [a-z], the sum of occurrences for all lower letters b. [0.5 Point] Total number of upper letters [A-Z], the sum of occurrencesfor all upperletters c. [0.5 Point] Total number of digits [0-9], the sum of occurrences for all digits d. [0.5 Point] Total number of occurrences for the string href= Note: A. Your program should be MENU-driven, in which the script will keep asking the user to enter a choice between (1-5) until the user enters a zero (0), then the program will exit/terminate. B. Any program that is not menu-driven will not be graded (you will get a ZERO for it) c. you are only allowed to use these three packages: urllib, matplotlib, and re. Any use of other packages such as BeautifulSoup will get you a ZERO

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!