Question: Please help me add a python string to this python code to ask for vowels within the string or input. string _ input = input

Please help me add a python string to this python code to ask for vowels within the string or input.
string_input = input("Enter string: ")
# Code responsible for counting characters
letter_to_count = input ("Enter a character to count in the string: ")
character_count = string_input.count (letter_to_count)
# Code responsible for case conversion
words = string_input.split() # String is split into words
upper_case_letter =[word.capitalize() for word in words] # Each first letter of each word is capitalized
title_case_string =''.join(upper_case_letter) # Works are brought back together as a string
Code responsible for checking if specific initials are present
initials = input("Enter your initials: ").upper()
initials present = initials in string_input.upper()
# Code responsible for displaying results
print (f"Character '(letter_to_count)' count in the string: (character count}")
print (f"String in title case: {title_case_string}")
print (f"Are your initials ({initials}) present in the string? ('Yes' if initials present else 'No'}")
 Please help me add a python string to this python code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!