Skip to content

Commit 0d3d617

Browse files
committedOct 4, 2022
Add python program that omit all vowels
1 parent f3dabfe commit 0d3d617

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎novowels.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def main():
2+
sts = str(input("Input: "))
3+
without_vowels = shorten(sts)
4+
print("Output: " + without_vowels)
5+
6+
def shorten(word):
7+
lttr = ""
8+
for letter in word:
9+
if not letter.lower() in ['a', 'e', 'i', 'o', 'u']:
10+
lttr += letter
11+
return lttr
12+
13+
if __name__ == "__main__":
14+
main()

0 commit comments

Comments
 (0)
Please sign in to comment.