- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 08377052947
-
TeacherJyoti
-
Category
Programming, Website Development
-
Duation
15 hours
-
Reviews(117 review)
-
Call Us for Details
Basic Python Course Questions
Python programming language is a general-purpose, dynamic programming Language.Python language have a large library of packages which makes python for beginners a language of choice.
Programs for practice
In the program below, we used loop over the vowels to find out the values in string
Source Code:
PRINT NUMBER OF VOWELS IN A STRING IN PYTHON
# PRINT NUMBER OF VOWELS IN A STRING
string=input("Enter string:")
vowels=0
for i in string:
if(i=='a' or i=='e' or i=='i' or i=='o' or i=='u' or i=='A' or i=='E' or i=='I' or i=='O' or i=='U'):
vowels=vowels+1
print("Number of vowels are:")
print(vowels)
Output
Run the program to see the output