syntax
variables
strings
operations
numbers
100

How do you print out the statement : Hello, world!

print ("Hello, world!")

100

x = 1

What value is stored inside x?

The integer 1

100

What symbols do you use to write a string?

Use double quotes (" ") or single quotes (' ')

100

What does the + symbol do to numbers?

adds them together

100

What will the following code print?

print(4+5)

9

200

What symbol is used for comments?

The # symbol

200

What is a variable?

A place in memory that is able to hold a value (word, number, etc.). Each variable has a data type.

200

"hello" + " " + "world" is an example of what?

Concatenation

200

What does the - operation do?

subtract

200

What will the statement print(2*5) output?

10

300

When assigning a variable, is it = or ==?

=

300

Which of these are acceptable variable names? 

green bean, BlueBerry, red strawberry, orange_orange, Yellow Pineapple

Blueberry, orange_orange

300

What does the following code print?

tutor = input("Who is the best tutor?")

print("The best tutor is "+ tutor)

The best tutor is [name of a tutor in class] 
300

What does ** do?

Exponent

300

What will the statement print(10%3) output?

1

400

You see a piece of code that looks like this: 

txt.upper()

what is it called?

A method or action

400

What will the below statement output?

print(str(1) + str(3))

13

400

Name the 3 examples of whitespace.

New line (/n), tab (/t), and space (" ")

400

What does // do and what is it called?

Divides a number and rounds down. It is called floor division.

400

What will the statement print(5//2) output?

2

500

Python is case sensitive. What does this mean?

When naming variables, using capital letters matters. HI, Hi, and hi are all different variable names.

500

What will the following code print out?

s1 = "abc"

s2 = "ghi"

s2 = s1

s1 = "def"

print (s2 + s1)

abcdef

500

You are given the variable s = "coding is fun" but only want the "coding" part to be printed. How do you code it?

print(s[0:6])

500

What does the operator "and" do?

It returns True if both statements are true


500

What will the statement print(0**56+0*(3*5)) output?

0

M
e
n
u