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

What will be saved in the variable age

age= input("Please enter your age: ")

What is the user age entry.

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

What data type will be saved in the variable age

age= input("Please enter your age: ")

What is a string?

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 operation is represented by % to get the remainder.
What is modulo/modulus?
300

If the variable 'gr' has "senior", what will be printed?

gr = input("What year of high school are you in? ") 

if gr == "Freshman":   print("Grade: 9") 

elif gr == "Sophomore":   print("Grade: 10") 

elif gr == "Junior":   print("Grade: 11")

elif gr == "Senior":   print("Grade: 12")

else:   print("Not in High School")

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 string operator that indicates an escape character 

What is \ (aka the escape character)?

400

Given the following:

sum = 0
for i in range(15, 21, 2):
    sum = sum + i
print(sum)

What is 51?

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 function that is use to iterate through a loop. 

What is range()?

500

This symbol   != 

What is Not Equal to.

500

What is output by the following program? 

What is Rainbow Sunshine Storm. 

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