Basic Programming
Python
Python Symbols
Python Code
Other Programming Knowledge
100

This often comes after if/elif

What is else?

100

This function returns the length of a variable.

len()

100

This is the operator used to concatenate.

+ (addition operator)

100

This is the character returned by "theCoderSchool"[5]

What is "d"?

100
This is what we call a sequence of instructions that accomplish a goal.
What is a program?
200
This loop runs forever.
What is a while True loop?
200

This is a way of repeating a set of code many times

What is a loop?

200

What is # used for in python? 

This symbol is used to comment out one line of code.

200

4**2 is equal to this number.

What is 16?

200

This is considered a good first programming language and generally the first language learned by programmers.

What is Python?

300

Boolean operators provide these as answers.

What is true and false?

300

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?

300

This is used to create multi-line comments.

""" or ''' (triple quotes)

300
This code would return:


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?

300
Another name for coffee, this programming language was invented in 1995.
What is Java?
400

This is an error that occurs when a character is incorrectly placed.

What is a syntax error?

400

If you want to add programmer to this list....

careers = ["doctor", "teacher", "accountant"]

careers.append("programmer")

400

What is modulo/modulus?

This operation is represented by % to get the remainder.

400

The answer for this problem: 
x<5 or x<4

What is true?

400
Grace Hopper found the first of these inside a computer, which became the term we use to refer to flaws in the code we write.
What are bugs?
500
This is the additional information passed to a function when it is called.
What are arguments?
500

Determine the function name and the string.

def family():
  print ("My family has pets")
family()

What is family and My family has pets?

500

This is a particular type of list

children = []

What is an empty list?

500

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

500

Many companies require you to do this before you publish your programs for use.

What is test and debug?

M
e
n
u