Add headers to exercises and labs

This commit is contained in:
lolabird 2023-11-19 23:03:43 -07:00
commit 3153a3e180
7 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Lab 1
def countAll(text):
wordDict = {}

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Lab 2
import turtle
def countAll(text):

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 1
def countAll(text):
wordDict = {}
text = text.lower()

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 2
def add_fruit(inventory, fruit, quantity=0):
if fruit not in inventory:

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 3
aliceBook = open("alice_in_wonderland.txt", "r")
aliceDict = {}
outfile = open("alice_words.txt", "w")

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 4
aliceBook = open("alice_in_wonderland.txt", "r")
aliceDict = {}

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 5
def translator(english):
pirate = {}