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
Because of the quotation marks, Python identifies the greeting below as a _______ (1 word, lowercase) | "Hello, World!" | string | ^ *string *$ |
Because there are no quotation marks, Python identifies the set of characters below as a _______. | country_of_origin | variable | ^ *variable *$ |
Assign the string "Boo!" to the variable scare. | scare = "Boo!" | scare `= `"`Boo!`" | |
Assign the string "jay" to the variable bird. | bird = "jay" | bird = "jay" | |
Assign your first name to a variable. You choose the variable name. | my_name = "Mark" | ^ *.* = •.+• *$ | |
Assign a string to a variable. You choose the variable name and the string. | gender = "female" | ^ *.* = •.*• *$ | |
In the statement below, I assign a string to a variable. Using the variable, write the statement that displays the string on the screen. | my_name = "Mark" | print(my_name) | ^ *print\(my_name\) *$ |
Assign a string to a variable. You choose the variable name and the string. Using the variable, write a statement that displays the string on the screen. | city = "London" print(city) | ^ *(.*) = •.*•\nprint\(\1\) *$ | |
Revise this variable name as the Python governing body recommends. | countryoforigin | country_of_origin | ^ *country_of_origin *$ |
Assign the string "Hi" to the variable greeting | greeting = "Hi" | ^ *greeting = •Hi• *$ | |
| 9a611bed77 | ||
| 82314bb296 |