Go to https://www.gutenberg.org and find any book of your choice. Select the option"Plain Text UTF-8", to open the book in the browser. An example: https://www.gutenberg.org/ebooks/244
Copy a few lines or short paragraph from the book of your choice and store it in a variable.
Using the string methods and loop, print the following:
a. The length of the string
b. Number of uppercase letters in the entire string
c. Number of lowercase letters in the entire string
d. Number of digits (if any)
e. Number of spaces
Snow and ice on that mountain. Nothing but snow. The wind drove it with a howl against the windows, where it stuck on the warm panes. Sometimes I could just make out the blur of the semaphore lights and sometimes I couldn’t. All day the blizzard had dumped its swirling load about us, and now, when night closed down, the storm took the tower in its teeth, shaking it like you’ve seen a dog shake a rat.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here