Saved at the end of class
This commit is contained in:
parent
e2c3dc6cbb
commit
c9bd61fef0
3 changed files with 11 additions and 9 deletions
12
boxes.py
12
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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 -----
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue