From c9bd61fef0fc05ecfe9f7844078d810825565017 Mon Sep 17 00:00:00 2001 From: allison Date: Fri, 25 Sep 2026 13:02:44 -0500 Subject: [PATCH] Saved at the end of class --- boxes.py | 12 +++++++----- madlibs_fox.py | 4 ++-- warmup.py | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/boxes.py b/boxes.py index ad8bf25..a849321 100644 --- a/boxes.py +++ b/boxes.py @@ -9,30 +9,32 @@ print("--- Program 1 ---") pet = "cat" print(pet) -# My guess: +# My guess:cat print("--- Program 2 ---") pet = "cat" print("pet") -# My guess: +# My guess:pet print("--- Program 3 ---") pet = "cat" pet = "dog" print(pet) -# My guess: +# My guess: pet print("--- Program 4 ---") x = 5 x = 7 print(x) -# My guess: +# My guess: 7 print("--- Program 5 ---") name = "Sam" print("Hi, Sam " + name) -# My guess: +# My guess: sam + + diff --git a/madlibs_fox.py b/madlibs_fox.py index bea9464..4ffb7fd 100644 --- a/madlibs_fox.py +++ b/madlibs_fox.py @@ -14,8 +14,8 @@ name = input("Type a name: ") animal = input("Type an animal: ") food = input("Type a food: ") -place = ____ # Ask for a place. Copy a line above and change it. -silly_word = ____ # Ask for a silly word. +place = input ("type a place") # Ask for a place. Copy a line above and change it. +silly_word = input("type a silly word") # ----- THE STORY ----- diff --git a/warmup.py b/warmup.py index 717d034..2054bb1 100644 --- a/warmup.py +++ b/warmup.py @@ -3,5 +3,5 @@ # 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? - - +name = input("what is your name? ") +print("Hi, " + name)