Loops & Conditionals
Variables
All About Python
SWE++
Memes
100

number = 5

if (number > 10):

    print("Hello!")

else:

    print("Bye-bye")

What will Python print?

Bye-bye

100

goose = 5 

duck = 7

chicken = 8 

goose = goose + duck

print(goose)

What will Python print?

12

100

potato = 31 

print(potato % 5)

What will Python print?

1

100

Why is SWE++ awesome?

I agree! 10/10! Phenomenal!

100

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

200

for i in range(4): 

  print(i)

What will Python print?

0

1

2

3

200

modulo = 11 % 3

print(modulo)

What will Python print?

2

200

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

200

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!

200

Come up with a SWE++ meme using this image.

HAHAHA You knocked my socks right off!

300

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.

300

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.

300

paris = "Eiffel"

france = " Tower"

print(paris + france)

What will Python print?

Eiffel Tower

300

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!

300

What is the most liked photo on Instagram?

The World Record Egg with 54.8 million likes!

400

tiny = turtle.Turtle()

for i in range(4): 

  tiny.forward(100)

  tiny.right(90)

What will tiny draw?

A square!

400

potter = 12

weasley = potter

potter += weasley

weasley = potter

potter = 4

print(weasley)

What will Python print?

24

400

animal = "panda"

print(animal[3])

What will Python print?

d

400

Name all 5 family names!

UPDATE

400

What is this meme?


STONK

500

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

500

happy = 50 

sleepy = 30 

sneezy = 20 

happy = happy - sneezy - sleepy

doc = 5 

happy += doc

What is happy?

5

500

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

500

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!

500

How tall is UC Berkeley's Campanile Tower?

307 feet!

M
e
n
u