Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/exercise1/vowel_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: "))

Expand Down
8 changes: 4 additions & 4 deletions text/exercise1/cake.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand All @@ -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).