This common variable type stores letters, numbers, and symbols. We often use this in typecasting and concatenation
What is a string?
This is the first word of any conditional.
What is 'if' ?
This operator (+) puts two strings together (or data stored as variables and strings).
What is the concatenation (+) operator?
These characters have the highest order of operation in Python (and come first in math as well)
What are parenthesis?
At the beginning of a code exercise, we always see
" " " before some red information and " " " after the red information. This is the purpose for these:
What is the header ?
With this type of error, a program will not run. It also will give an error message and give a general idea of where the error is located.
What is a syntax error?
This would print with the following code:
day = "Wednesday"
print("day")
What is day?
The result of 9 / 5
What is 1.8?
This function asks for user response and can be assigned to a variable.
What is input()?
The value of 'x' after the following Python code has completed executing?
x = 100
x *= 15
print(x)
What is 1500?
In Python, this is the smallest element of a program that can be executed. Clue: input _______,
print _______
What is a statement?
This would be the output if your code was:
name = input("What is your name?")
print(name)
What is whatever is stored in the "name" variable (or the answer to the question)
The result of:
num = int(9 / 5)
print(num)
What is 1 ?
Data stored as a string is surrounded by these.
What are quotes or quotes and parentheses)
This replaces n = n - 20 as
n-= 20.
This operation is called:
What is a decrement statement?
For:
if x > 15:
print("That number is greater than 15!")
The condition is:
What is x > 15?
This function prints a blank line in coding.
What is print()?
To typecast a variable to a string, you would need to do this...
What is str()
This operation replaces
n = n + 10 and makes it
n += 10.
What is a increment statement?
For:
if x > 15:
print("That number is greater than 15!")
The conditional is:
What is if x > 15?
This can be omitted from a boolean variable and the outcome is the same.
if running == True:
What is == True.