1
2
3
4
5
6
7
8
9
10
11
12
To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to Trinket.
Post a review on Amazon for the paperback or the Kindle edition.
Email me to give me a compliment, complaint, or correction. I'll respond.
0,1,2,3,4,5,6,7,8,9,10,11
0
0
0
0
There are two correct answers for this one. Answer with either one. What is this? | 100 | number or integer | ^ *number|integer *$ |
Type the illegal character in this variable name. | 2nd_runner_up | 2 | ^ *2 *$ |
Assign the number 5 to the variable players | players = 5 | players `= `5 | |
Assign the negative number -6 to the variable loss | loss = -6 | loss = -6 | |
What is the value of total? | number = 10 total = number + 2 | 12 | ^ *12 *$ |
Assign a number (your choice) to the variable total. | total = 15 | ^ *total = [-]?(?:[.]\d+|\d+(?:[.]\d*)?) *$ | |
Assign a negative integer to a variable. You choose the integer and the variable name. | loss = -1030 | ^ *.+ = -[0-9]+ *$ | |
What is this (one word, lowercase)? | "-8.087" | string | ^ *string *$ |
Add two variables and assign the result to a third variable. Make up all the variable names. | total = merch_total + shipping | ^ *.* = .* \+ .* *$ | |
Add 5 to the variable running_total and assign the result to the same variable | running_total = running_total + 5 | ^ *running_total = running_total \+ 5 *$ | |
| 95e5b0c7e4 | ||
| 9e613e9523 |