I am new to python and coding in general and I need help with this problem.
Write a program that will take a string as input and will perform the following functions:
▪ Print the number(count) of spaces in the string
▪ Print the number(count) of lower case letters
▪ Print number of punctuation marks
Demonstrate how you would find the last space in a string
Thanks
You can use
filterandlentogether for counting things. For example:Note, the
string.uppercase, string.lowercase,etc. values are defined in thestringmodule, and can be used after you import thestringmodule. Each of them is a string value; for example:Note, in the above, >>> is the primary prompt from the python interpreter, and … is a secondary prompt for an indented line.