This often comes after if/elif
What is else?
This is the character returned by "theCoderSchool"[5]
What is "d"?
This is a way of repeating a set of code many times
What is a loop?
This symbol is used to comment out one line of code
What is the #?
4**2 is equal to this number.
What is 16?
This is considered a good first programming language and generally the first language learned by programmers.
What is Python?
Boolean operators provide these as answers.
What is true and false?
What keyword is used to display output to the screen in Python?
What is print () ?
This is used to mean no equal to.
What is !=?
def letter_grade(score):
if score <60:
return "F"
elif score <70:
return "D"
else:
return "C or higher"
print(letter_grade(85))
What is C or higher?
This is an error that occurs when a character is incorrectly placed.
What is a syntax error?
If you want to add programmer to this list....
careers = ["doctor", "teacher", "accountant"]
careers.append("programmer")
This operation is represented by % to get the remainder.
What is modulo/modulus?
The answer for this problem:
x<5 or x<4
What is true?
What is the difference between int and float?
This is a particular type of list
children = []
What is an empty list?
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
Many companies require you to do this before you publish your programs for use.
What is test and debug?