write a word based program for input a word and print total number of times first character came in it
Answers
Answered by
0
#!/usr/local/bin/python3
"""Counts the vowels in a user input string."""
s = input("Enter any string: ")
vcount = 0
for c in s:
if c in "aeiouAIEOU":
vcount += 1
print("C is ", c, "; Vowel count:", vcount)
Answered by
2
Explanation:
#!/usr/local/bin/python3
"""Counts the vowels in a user input string."""
s = input("Enter any string: ")
vcount = 0
for c in s:
if c in "aeiouAIEOU":
vcount += 1
print("C is ", c, "; Vowel count:", vcount)
Similar questions