Skip to content

Commit

Permalink
anti_vowerl
Browse files Browse the repository at this point in the history
aeiou much better than i.lower()==a or ......
and also not is better ,not to use one more if then continue
  • Loading branch information
zfk513 authored Aug 16, 2017
1 parent 7194d29 commit f64bb1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions anti_vowel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def anti_vowel(text):
word=''
for i in text:
if i.lower() not in"aeiou":
word+=i
return word
print anti_vowel("Aeino Hey You!")

0 comments on commit f64bb1a

Please sign in to comment.