Computer Science, asked by prakriti304, 5 months ago

=LEN("I LOVE MY COUNTRY INDIA") gives output​

Answers

Answered by nisha02345
1

Explanation:

Python3 code to count vowel in

# a string using set

# Function to count vowel

def vowel_count(str):

# Initializing count variable to 0

count = 0

# Creating a set of vowels

vowel = set("aeiouAEIOU")

# Loop to traverse the alphabet

# in the given string

for alphabet in str:

# If alphabet is present

# in set vowel

if alphabet in vowel:

count = count + 1

print("No. of vowels :", count)

# Driver code

str = "GeeksforGeeks"

# Function Call

vowel_count(str)

outpout =5

Answered by m9000339904
8

Answer:

kk sis definitely I will thank your answer

Similar questions