← Projects

Delete count_vowels.py

1cce0bb793ba5358c03f38fdcea4cc9767ad9f81 · ovidiucs · Jul 14, 2013 23:49

−17 · 1 file changed

  • Text/count_vowels.py +0 −17
diff --git a/Text/count_vowels.py b/Text/count_vowels.py
deleted file mode 100644
index 8477648..0000000
--- a/Text/count_vowels.py
+++ /dev/null
@@ -1,17 +0,0 @@
-"""
-Count Vowels - Enter a string and the program counts
-the number of vowels in the text. For added complexity
-have it report a sum of each vowel found.
-"""
-
-string = raw_input('Enter a string: ').lower()
-
-vowels = ['a', 'e', 'i', 'o', 'u']
-counts = dict(zip(vowels, [0, 0, 0, 0, 0]))
-
-for vowel in counts:
-    for char in string:
-        if vowel == char:
-            counts[vowel] += 1
-
-print counts