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
Type the illegal character in this variable name: 2nd_address | 2 | ^ *2 *$ | |
Type the illegal character in this variable name: | fourth-Player | - | ^ *- *$ |
Rewrite this variable name using the recommended style: customerlastname | customer_last_name | customer`_`last`_`name | |
Rewrite this variable name using the recommended style: totalaftertax | total_after_tax | total_after_tax | |
Make up a variable name that includes a number. | customer_3031 | ^ *[a-zA-Z_][a-zA-Z0-9_]* *$ | |
Assign a string to a variable. Make up the string and the variable name. | first_name = "Barney" | ^ *[a-zA-Z_][a-zA-Z0-9_]* = •.*• *$ | |
Assign a number to a variable. Make up the number and the variable name. | total = 955 | ^ *[a-zA-Z_][a-zA-Z0-9_]* = [-]?(?:[.]\d+|\d+(?:[.]\d*)?) *$ | |
Assign the sum of two numbers to a variable. Make up the numbers and the variable name. | total = 4 + 4 | ^ *[a-zA-Z_][a-zA-Z0-9_]* = [-]?(?:[.]\d+|\d+(?:[.]\d*)?) \+ [-]?(?:[.]\d+|\d+(?:[.]\d*)?) *$ | |
Assign one variable to another. Make up the variable names. | name = last_name | ^ *[a-zA-Z_][a-zA-Z0-9_]* = [a-zA-Z_][a-zA-Z0-9_]* *$ | |
Divide one variable by another and assign the result to a third variable. Make up the variable names. | each_share = total / number_of_diners | ^ *[a-zA-Z_][a-zA-Z0-9_]* = [a-zA-Z_][a-zA-Z0-9_]* / [a-zA-Z_][a-zA-Z0-9_]* *$ | |
| 913055f81e | ||
| 8bfb3fbb78 |