What are examples data types?
Different types of data distinguished by Python (String, int, float, 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?
Allows us to store information which can be changed
What is the results/output side of our coding screen called?
The Console
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
8
What does the == operator do?
Checks if the two values are equal and returns true or false
str()
Plrinting a string always requires quotes around it "Like this!"
When does can you use the print function without quotes?
Printing a variable!
Example:
name = "Bryce Chalmers"
print(name)
What comes after an if statement?
elif statement or else
53
How would you convert the following user input line into a number that you can perform math operations on?
age = input("How old are you? ")
Put the input() function inside the int() function!
age = int(input("How old are you? "))
What symbol comes after an if statement?
: