This often comes after if/elif
What is else?
This function prints whatever is given to it.
What is print()?
This is the character returned by "theCoderSchool"[5]
What is "d"?
The name of special symbols in Python that carry out arithmetic or logical computation
What are operators?
This is a way of repeating a set of code many times
What is a loop?
4**2 is equal to this number.
What is 16?
This is considered a good first programming language.
What is Python 3?
Boolean operators provide these as answers.
What is true and false?
Variables can be defined both inside or outside of a function. This determines if a variable is inside or outside of the function.
What is spacing or indent?
This code would return:
x,y = 1,2
print(x - y + x * y)
What is 1?
This is an error that occurs when a character is incorrectly placed.
What is a syntax error?
This Code Outputs:
x = "12"
print(x - x +12)
What is an error?
This operation is represented by % to get the remainder.
What is modulo/modulus?
This code outputs:
x = 3
If x == 3:
print("x<5 and x<4")
What is an error?
The name of this operator:
!=
What is Not equal to?
What does this function output?
x = 2
x +=6
x -=10
x *= -1
print(x)
if float(x) == 2:
print("x is two")
elif x != 2:
print("x is not two")
What is
x is two?
True or false:
There are 6 different data types in python
What is true?
Here's a bit of code. It would print:
season = "Spring is the best"
for i in range(5):
print(season)
What is
Spring is the best
Spring is the best
Spring is the best
Spring is the best
Spring is the best
Who is Guido Van Rossum?