diff --git a/README.md b/README.md index 4a8824f..32c18bf 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ only command they run is `git pull`. | File | Who | |---|---| -| `boxes.py` | Everyone. Predict on paper first, then run. | +| `warmup.py` | Everyone. Retrieval: the two name-and-greet lines, from memory, then run. | +| `boxes.py` | Everyone. Type a guess under each program, then run. | | `madlibs_fox.py` | Most help: 3 of 5 input lines written, fill 2. | | `madlibs_owl.py` | Some help: story written, write the 5 input lines from comments. | | `madlibs_bear.py` | Least help: write the inputs and the story. | +| `ticket.txt` | Everyone, last 4 minutes. Exit ticket: type answers without running, then push. | diff --git a/boxes.py b/boxes.py index 8ed5aee..ad8bf25 100644 --- a/boxes.py +++ b/boxes.py @@ -1,32 +1,38 @@ # BOXES # # Do NOT run this yet! -# First, guess what each program prints. Write your guesses on your paper. +# Read each program. Guess what it prints. +# Type your guess after "My guess:" (it is a comment, so Python ignores it). # Then run it and check. print("--- Program 1 ---") pet = "cat" print(pet) +# My guess: print("--- Program 2 ---") pet = "cat" print("pet") +# My guess: print("--- Program 3 ---") pet = "cat" pet = "dog" print(pet) +# My guess: print("--- Program 4 ---") x = 5 x = 7 print(x) +# My guess: print("--- Program 5 ---") name = "Sam" print("Hi, Sam " + name) +# My guess: diff --git a/ticket.txt b/ticket.txt new file mode 100644 index 0000000..2589bd2 --- /dev/null +++ b/ticket.txt @@ -0,0 +1,29 @@ +EXIT TICKET — Python Day 3 + +Do not run anything. Just read each one and type what it prints. + + +1. + x = 5 + x = 7 + print(x) + +It prints: + + +2. + food = "pizza" + print("food") + +It prints: + + +3. + name = "Mia" + name = "Leo" + print("Hi " + name) + +It prints: + + +Then save point: git add . git commit -m "my ticket" git push diff --git a/warmup.py b/warmup.py new file mode 100644 index 0000000..717d034 --- /dev/null +++ b/warmup.py @@ -0,0 +1,7 @@ +# WARM-UP +# +# No peeking at hello.py! +# Write the 2 lines that ask for a name, and then say hi to that person. +# Then run it. Does it work? + +