Skip to content

Commit

Permalink
Create disemvowel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudeNi authored Aug 7, 2022
1 parent 8ae00b3 commit 5ea80ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Python/disemvowel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def disemvowel(string_):
vowels = ["a","A","e","E","i","I","u","U","o","O"]

str = ""
for char in string_:
if not char in vowels:
str = str + char
return str

0 comments on commit 5ea80ed

Please sign in to comment.