What is the correct way to print Hello World?
a. print(Hello World)
b. Print(Hello World)
c. print("Hello World)
d. print("Hello World")
What is d. print("Hello World")
Create a variable named pet.
Ex: pet = "Newt"
pet = "dog"
True or False
The keyword print can be capitalized
Print("ABC")
print("ABC")
You are given the variable age = 13. Write a print statement that prints the variable.
print(age)
What is placed in between the name of the variable and the value of the variable?
an equal sign =
True or False
The names of variables should be capitalized.
False
print = ("Surely this is correct, right?")
print("Surely this is correct, right?")
Correct the code below:
print = ("This code is right")
print("This code is right")
No equal sign needed for print statements
True or False
The following variable is correct:
age = 28
True
True or False
The names of variables that are made up of two or more words can have spaces
ex: pet dog = "Newt"
False
Correct version:
pet_dog = "Newt"
age : 13
print(age)
age = 13
print(age)
Data stored as a string is surrounded by these.
Hint: think about how we would print() the words
Hello World
What are quotation marks "" ?
Write a variable named number and store the value 13 inside of it.
number = 13
OR
number = "13"
OR
number = 13.0
We'll talk more about this later!
True or False
Variables should have descriptive names.
True
character is a better variable name than char
name = "Thomas
print(name)
name = "Thomas"
print(name)
List the 3 things that make up every print statement in Python.
the word print
parentheses
the data inside of the parentheses (words, numbers, etc.)
Create a variable named classroom and store the value Miller's inside of it. Then, print the variable.
classroom = "Miller's"
print(classroom)
True or False
Every parenthesis/quotation mark must have another parenthesis/quotation mark to pair with it.
True
ex: print("One of each on each side of these words")
Grade = "A+"
print(Grade)
grade = "A+"
print(grade)