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): def countAll(text):
wordDict = {} wordDict = {}

View file

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

View file

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

View file

@ -1,3 +1,7 @@
# Runestone.Academy thinkcspy course
# Chapter 12
# Problem 2
def add_fruit(inventory, fruit, quantity=0): def add_fruit(inventory, fruit, quantity=0):
if fruit not in inventory: 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") aliceBook = open("alice_in_wonderland.txt", "r")
aliceDict = {} aliceDict = {}
outfile = open("alice_words.txt", "w") 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") aliceBook = open("alice_in_wonderland.txt", "r")
aliceDict = {} aliceDict = {}

View file

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