Write a Python program to accept a string from the user and then print the number of vowels, consonants, digits and special characters in the string. For example, if the user enters "Hello@123", the output should be:
Vowels: 2
Consonants: 3
Digits: 3
Special characters: 1
Answer:
Answer by student
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.