What are data types?
Different types of data distinguished by Python (String, int, boolean)
What is an algorithm?
A list of instructions to solve problems or perform a task
What command do you get user response?
input()
What is a variable?
What application do we use for python coding?
Idle
What data type is text?
strings
What is missing in this line of code:
print(hello world")
opening quotes
What is the keyword to define a function?
def
What symbol will multiply numbers?
*
What does an empty print() statement do?
Skips a line
What data type is 3.56?
float
Why do we use list?
To store multiple items that are similar in one variable
What data type is the number 3?
integer
What is a module?
An expansion of the main coding program and allows us to access different functions
What 3 commands are use for conditions?
if, elif, else
53
What does the == operator do?
Checks if the two values are equal and returns true or false
str()
A condition is:
A statement that is either True or False
["Apple", "Baby", "Dinosaur", "2934"]
What is the index of Baby?
1
age = 15
gpa = 92.5
isAdult = (age > 18)
What is (gpa < age) AND (isAdult) going to return?
False
What does a comment start with in Python
#
How can we generate a random number?
What symbol comes after an if statement?
:
What comes after an if statement?
elif statement or else