number = 5
if (number > 10):
print("Hello!")
else:
print("Bye-bye")
What will Python print?
Bye-bye
goose = 5
duck = 7
chicken = 8
goose = goose + duck
print(goose)
What will Python print?
12
potato = 31
print(potato % 5)
What will Python print?
1
Why is SWE++ awesome?
I agree! 10/10! Phenomenal!
What is the number 1 song on Billboard's top 100 for 2021? (We'll give you an extra 200 points if your entire family sings a lyric!)
"My Universe" by Coldplay x BTS
for i in range(4):
print(i)
What will Python print?
0
1
2
3
modulo = 11 % 3
print(modulo)
What will Python print?
2
avengers = "I love you " + 3000
print(avengers)
endGame = "I love you " + str(3000)
print(endGame)
What will Python print?
ERROR: Python cannot concatenate strings and integers.
I love you 3000
What programming topic did you enjoy learning about the most and what are you excited to be able to do/make with computer science?
Super cool! Thanks for sharing!
Come up with a SWE++ meme using this image.
HAHAHA You knocked my socks right off!
favorite_cookie = "chocolate chip"
if (favorite_cookie == "oatmeal"):
print("Please buy some rolled oats.")
elif (favorite_cookie == "chocolate chip"):
print("Please buy some chocolate chips.")
else:
print("I do not know any other cookie flavors:(")
What will Python print?
Please buy some chocolate chips.
In your own words, define a variable in Python?
A variable is something that can be changed. In computer programming, we use variables to store information that might change and can be used later in our program.
paris = "Eiffel"
france = " Tower"
print(paris + france)
What will Python print?
Eiffel Tower
Introduce us to someone (outside of your family) that you have met during your time with SWE++. What is one interesting thing you learned about them?
Nice to meet you!
What is the most liked photo on Instagram?
The World Record Egg with 54.8 million likes!
tiny = turtle.Turtle()
for i in range(4):
tiny.forward(100)
tiny.right(90)
What will tiny draw?
A square!
potter = 12
weasley = potter
potter += weasley
weasley = potter
potter = 4
print(weasley)
What will Python print?
24
animal = "panda"
print(animal[3])
What will Python print?
d
Name all 5 family names!
UPDATE
What is this meme?
STONK
When do we use a for loop compared to a while loop?
We use for loops when we already know the number of iterations. We use while loops when the number of iterations is not exactly known
happy = 50
sleepy = 30
sneezy = 20
happy = happy - sneezy - sleepy
doc = 5
happy += doc
What is happy?
5
favoriteMusical = input()
if (favoriteMusical == "Hamilton"):
print("Eliiiiiizaaaaaa")
elif (favoriteMusical == "Aladdin"):
print("Hello New World")
else:
print("Don't sleep on Lion King")
If the user input "hamilton", what will Python print?
Don't sleep on Lion King
Introduce us to everyone in your family! What are their names and what is one interesting thing that you all have in common?
Amazing! Nice to meet y'all!
How tall is UC Berkeley's Campanile Tower?
307 feet!