Basic Programming
Functions
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.
What is len()?
100
This is the operator used to concatenate.
What is +?
100

This is the character returned by "I Love Python"[5]

What is "e"?

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 an infinite loop or what is a while True loop?

200
This function gets a response from the user.
What is raw_input()? (input())
200
This symbol is used to comment out one line of code
What is the #?
200
4**2 is equal to this number.
What is 16?
200

This is the programming language used to build web pages and transfer information on the web. 

What is HTML (Hyper Text Markup Language)?

300
This variable type stores numbers that have a decimal point.
What is a float?
300

This function returns returns a number rounded to ndigits 

What is .round()?

300

This is used to create multi-line comments.

What is '''?

300

This is the string returned by

  alphabet = ["a", "b", "c", "d"]
  alphabet.pop(1)

What is "["a", "c", "d"]?

300

Computers run on this number system.

What is Binary?

400

We use this type of statement to iterate through a collection of elements. 

What is a for loop?

400
This keyword is used when you want to use code from other libraries.
What is import?
400
This operation is represented by % to get the remainder.
What is modulo/modulus?
400

L = [ ['a','b','c'], ['x','y','z'] ] 

The statement that would print 'y' by accessing its index. 

What is print( L[1][1] )?

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

A statement that returns an iterator of integers from start to stop, with an increment of step . 

What is range()?

500

This string operator that indicates an escape character 

What is \ (aka the escape character)?

500

The statement that would add the nearest enemy to a variable.

What is enemy = hero.findNearestEnemy()

500
Many languages require you to do this before you can run code written in that language
What is compiling?
M
e
n
u