7
7
# 25. Write a program to count the number of vowels and consonants in a given string.
# 26. Write a program to replace all white space by a # in a given string.
# 27. Write a program to print the number of
Upper case
Lower Case
Digits
Special characters
In the given string.
# 28. Write a program that prompt the user for a string
❖ extract all the digits from the string.
If there are digits :
❖ A sum the collected digits together
print out :
• the original string • the digits the sum of the digits •
❖ If there are no digits:
print the original string and a message "has no digits".
# 29. Write a Python program as per specifications given below: