diff --git a/python/exercise1/vowel_counter.py b/python/exercise1/vowel_counter.py index a50949a..64cec82 100644 --- a/python/exercise1/vowel_counter.py +++ b/python/exercise1/vowel_counter.py @@ -10,9 +10,11 @@ def num_vowels(text): def num_consonants(text): vowels = "aeiou" + num = 0 for letter in text: if letter not in vowels: print("consonant", letter) + num +=1 text = str(input("Enter a sentence: ")) diff --git a/text/exercise1/cake.md b/text/exercise1/cake.md index b4edd5f..d323c36 100644 --- a/text/exercise1/cake.md +++ b/text/exercise1/cake.md @@ -1,8 +1,8 @@ ## Recipice for Chocolate Cake -Yellow cake is delicious! This recipie is passed down from my great-great-grandparents. +Yellow cake is delicious! This recipe is passed down from my great-great-grandparents. -My great-great-granparents lived in Venice. They enjoyed travelling on the canals. +My great-great-grandparents lived in Venice. They enjoyed traveling on the canals. Did you know Venice became Austrian territory when Napoleon signed the Treaty of Campo Formio on 12 October 1797? I did not. @@ -13,7 +13,7 @@ Mix the flour, baking powder, and salt together in a medium bowl. - 240 grams all-purpose flour - 3 1/2 teaspoons baking powder -- 1 cup salt +- 1 teaspoon salt - 1 1/2 cups white sugar - 1/2 cup of shortening - 3 eggs @@ -30,4 +30,4 @@ Stir in vanilla and pour cake batter into the prepared pan. Bake in the preheated oven until a toothpick inserted in the center comes out clean, about 40 to 45 minutes. -Preheat the oven to 3500 degrees F (175 degrees C). +Preheat the oven to 350 degrees F (175 degrees C).