A box called coins holds three. Which line adds one coin?
🔤coins == 4🔤coins = coins + 1🔤coins = 3 - 1
7
A box called coins holds three. Which line takes one coin out?
🔤1 + coins = coins🔤coins = 3 - 1🔤coins == 4
8
A box called coins holds three. Which line has a bug?
🔤1 + coins = coins🔤coins = 3 - 1🔤coins == 4
9
A box called coins holds three. Which line has a bug?
🔤coins = 3 - 1🔤3 = coins🔤coins + 1
10
Which idea about variables is true?
🔢a variable can only hold a number🏷️the name on a variable is how Python finds it↔️a variable name can have spaces in it
11
Which idea about variables is true?
🔒a variable keeps its first value forever⚖️one equals sign checks if two things are equal📦a variable is a named box that holds a value
12
A box called coins holds three. Which line leaves the box holding three?
🔤coins = coins - 1🔤1 + coins = coins🔤coins + 1
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.
Answer key · Set C
Variables in Python
1coins = coins - 1
2a variable can only hold a number
3a variable keeps its first value forever
4one equals sign puts a value in a variable
5coin = coins + 1
6coins = coins + 1
7coins = 3 - 1
81 + coins = coins
93 = coins
10the name on a variable is how Python finds it
11a variable is a named box that holds a value
12coins + 1
Mark each answer, count the right ones and write the score on the sheet.