Skip to content

Commit d744831

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d6cb1d commit d744831

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

strings/vowel_check.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
String = input('Enter the string :')
1+
String = input("Enter the string :")
22
count = 0
3-
#to check for less conditions
4-
#keep string in lowercase
3+
# to check for less conditions
4+
# keep string in lowercase
55
String = String.lower()
66
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
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
1111
if count == 0:
12-
print('No vowels found')
12+
print("No vowels found")
1313
else:
14-
print('Total vowels are :' + str(count))
14+
print("Total vowels are :" + str(count))

0 commit comments

Comments
 (0)