Computer Science, asked by amber12358, 8 months ago

write a word based program for input a word and print total number of times first character came in it​

Answers

Answered by Anonymous
0

\huge\mathcal{Answer:}

#!/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 Anonymous
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