Data Types
Logic
python 3
python 4
python 5
100

What are data types?

Different types of data distinguished by Python (String, int, boolean)

100

What is an if statement?

A conditional statement that if true, does some code. 

100

What command do you get user response?

 input()

100

What is a variable?

Allows us to store information
100

What application did we use for python coding?

Replit

200

What data type is text?

 strings

200

What is missing in this line of code:

print(hello world")

 opening quotes

200

What is the keyword to define a function?

def

200

What symbol will multiply numbers?

 *

200

What does an empty print() statement do?

Skips a line

300

What data type is 3.56?

  float

300

Why do we use list?

To store multiple items that are similar in one variable

300

What data type is the number 3?

 int

300

What is a module?

An expansion of the main coding program and allows us to access different functions

300

What are the 3 selection commands you learned?

 if, elif, else

400
What is the result of: print("5"+"3")


 53

400

What does the == operator do?

Checks if the two values are equal and returns true or false

400
How do we convert another data type into a String?

str()

400

A condition is: 

A statement that is either True or False

400

["Apple", "Baby", "Dinosaur", "2934"]

What is the index of Baby?

1

500

age = 15

gpa = 92.5

isAdult = (age > 18)

What is (gpa < age) AND (isAdult) going to return?

False

500

What is an algorithm?

A list of instructions to solve problems or perform a task

500

How can we generate a random number?

Random.randint()
500

What symbol comes after an if statement?

 :

500

What comes after an if statement?

 elif statement or else

M
e
n
u