Basic Print
Variables/Functions
Syntax
Debug the Code
100

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")

100

Create a variable named pet.

Ex: pet = "Newt"

pet = "dog"

100

True or False

The keyword print can be capitalized

False
100

Print("ABC")

print("ABC")

200

You are given the variable age = 13. Write a print statement that prints the variable.

print(age)

200

What is placed in between the name of the variable and the value of the variable?

an equal sign =

200

True or False

The names of variables should be capitalized.

False

200

print = ("Surely this is correct, right?")

print("Surely this is correct, right?")

300

Correct the code below:

print = ("This code is right")

print("This code is right") 

No equal sign needed for print statements

300

True or False

The following variable is correct:

age = 28

True

300

True or False

The names of variables that are made up of two or more words can have spaces

ex: pet dog = "Newt"

False  they have UNDERSCORES BETWEEN WORDS

Correct version:

pet_dog = "Newt"

300

age : 13

print(age)

age = 13

print(age)

400

Data stored as a string is surrounded by these.

Hint: think about how we would print() the words

Hello World

What are quotation marks "" ?

400

Write a variable with a class after it CORRECTLY

chris=Teacher

or

chris= CS_Teacher


400

True or False

Variables and functions should have descriptive,logical names.

True

character is a better variable name than char

400

name = "Thomas

print(name)

name = "Thomas"

print(name)

500

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.)

500

verbally name the following parts of a FUNCTION

def         afternoon_study_playlist         ( ):

          print     (“Taylor Swift and Luke Combs”)    ( )

afternoon_study_playlist ( )

define     function     call

print command    string     call

function    call

500

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")

500

Grade = "A+"

print(Grade)

grade = "A+"

print(grade)