Today's files from your teacher
This commit is contained in:
parent
d7ae2a3e10
commit
efded6a7d0
4 changed files with 140 additions and 0 deletions
32
boxes.py
Normal file
32
boxes.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# BOXES
|
||||
#
|
||||
# Do NOT run this yet!
|
||||
# First, guess what each program prints. Write your guesses on your paper.
|
||||
# Then run it and check.
|
||||
|
||||
|
||||
print("--- Program 1 ---")
|
||||
pet = "cat"
|
||||
print(pet)
|
||||
|
||||
|
||||
print("--- Program 2 ---")
|
||||
pet = "cat"
|
||||
print("pet")
|
||||
|
||||
|
||||
print("--- Program 3 ---")
|
||||
pet = "cat"
|
||||
pet = "dog"
|
||||
print(pet)
|
||||
|
||||
|
||||
print("--- Program 4 ---")
|
||||
x = 5
|
||||
x = 7
|
||||
print(x)
|
||||
|
||||
|
||||
print("--- Program 5 ---")
|
||||
name = "Sam"
|
||||
print("Hi, Sam " + name)
|
||||
Loading…
Add table
Add a link
Reference in a new issue