1 2 3 4 5 6 7 8 9 | def anti_vowel(text): anti = "" vowels = ['A','E','I','O','U','a','e','i','o','u'] for char in text: if char not in vowels: anti = anti + char return anti print anti_vowel("jejus save us, to save the world!") | cs |
if not in 의 신세계!!!
'codeacademy' 카테고리의 다른 글
| 15. Practice Makes Perfect / censor (0) | 2017.03.28 |
|---|---|
| 15. Practice Makes Perfect / scrabble_score (0) | 2017.03.28 |
| 15. Practice Makes Perfect / reverse (0) | 2017.03.28 |
| 15. Practice Makes Perfect / is_prime (0) | 2017.03.28 |
| 15. Practice Makes Perfect / factorial (0) | 2017.03.28 |
댓글