Add headers to exercises and labs
This commit is contained in:
parent
172351f5df
commit
3153a3e180
7 changed files with 28 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Lab 1
|
||||
|
||||
def countAll(text):
|
||||
wordDict = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Lab 2
|
||||
|
||||
import turtle
|
||||
|
||||
def countAll(text):
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Problem 1
|
||||
|
||||
def countAll(text):
|
||||
wordDict = {}
|
||||
text = text.lower()
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Problem 2
|
||||
|
||||
def add_fruit(inventory, fruit, quantity=0):
|
||||
|
||||
if fruit not in inventory:
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Problem 4
|
||||
|
||||
aliceBook = open("alice_in_wonderland.txt", "r")
|
||||
aliceDict = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 12
|
||||
# Problem 5
|
||||
|
||||
def translator(english):
|
||||
|
||||
pirate = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue