# Write a Python program that prompts the user for a string….
# Write a Python program that prompts the user for a string.# The program should use a for-loop to analyze each character and determine# how many characters fall into each of the following categories:## 1. Vowels (a, e, i, o, u — both uppercase and lowercase)# 2. Consonants (letters that are not vowels)# 3. Digits (0–9)# 4. Whitespace (spaces, tabs, etc.)# 5. Other characters (symbols, punctuation, etc.) Sample Run: Enter a string: Hello World! 2026Vowels: 3Consonants: 7Digits: 4Whitespace: 2Other: 1 Rubric: Correct for-loop creation (2pts) Correct use of string functions (lower(), in, isalpha(), isdigit(), isspace()) and if statements (3pts)
Read Details