We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6cb1d commit d744831Copy full SHA for d744831
strings/vowel_check.py
@@ -1,14 +1,14 @@
1
-String = input('Enter the string :')
+String = input("Enter the string :")
2
count = 0
3
-#to check for less conditions
4
-#keep string in lowercase
+# to check for less conditions
+# keep string in lowercase
5
String = String.lower()
6
for i in String:
7
- if i == 'a' or i == 'e' or i == 'i' or i == 'o' or i == 'u':
8
- #if True
9
- count+=1
10
-#check if any vowel found
+ if i == "a" or i == "e" or i == "i" or i == "o" or i == "u":
+ # if True
+ count += 1
+# check if any vowel found
11
if count == 0:
12
- print('No vowels found')
+ print("No vowels found")
13
else:
14
- print('Total vowels are :' + str(count))
+ print("Total vowels are :" + str(count))
0 commit comments