3rd question korbo
a.
def vowel_count(str):
count = 0
count_space=0
count_consonent=0
vowel = set("aeiouAEIOU")
for alphabet in str:
if alphabet in vowel:
count = count + 1
elif alphabet in " ":
count_space=count_space + 1
else:
count_consonent=count_consonent + 1
print("No. of vowels :", count)
print("No. of space :", count_space)
print("No. of consonents :", count_consonent)
str = "Geeks for Geeks"
vowel_count(str)
b.
num = 11
if num > 1:
for i in range(2, int(num/2)+1):
if (num % i) == 0:
print(num, "is not a prime number")
break
else:
print(num, "is a prime number")
else:
print(num, "is not a prime number")