diff --git a/strings/vowel_check.py b/strings/vowel_check.py new file mode 100644 index 000000000000..e62b5299a512 --- /dev/null +++ b/strings/vowel_check.py @@ -0,0 +1,14 @@ +String = input("Enter the string :") +count = 0 +# to check for less conditions +# keep string in lowercase +String = String.lower() +for i in String: + if i == "a" or i == "e" or i == "i" or i == "o" or i == "u": + # if True + count += 1 +# check if any vowel found +if count == 0: + print("No vowels found") +else: + print("Total vowels are :" + str(count))