Data Types
Print Statements
Inputs
Variables
Find the Syntax Error
100
"Hello" is this data type.

String

100

Write the code to print Hello to the console.

print("Hello")

100

What is an input in Python?

Inputs wait for the user to type some text and press enter. It allows you to ask a question and get a response.
100

What is a variable?

Use to store something for later in the code.

100

Print("Hello")

print("Hello")

200

14 is this data type.

Integer

200

Write the code that would print I love coding! to the console.

print("I love coding!")
200
True or false: Inputs must be set equal to a variable.

True! Otherwise, whatever the person types gets lost.

200

What two things does a variable need?

A name and a value.

200

print("12")

print(12)

300

15.7 is this data type.

Floating Point
300

Write the code that prints a boolean to the console.

print(true)

300

Write the code that asks a user for their name.

userName = input ("What is your name?" )

300

Create a variable called yourName and set it equal it your name with correct code.

yourName = "Ms. Raynovich"

300

name="Mary"
print=name)

name="Mary"
print(name)

400

What is the short form for a true or false?

Bool

400

Write the code that would print a float to the console.

print(10.7)

400

What is casting in Python code?

Changing the data type from one to another.

400

Create a variable called fav_color and set it equal to your favorite color. Print it to the console.

fav_color = "blue"
print(fav_color)

400

favMovie="Jaws"
print("favMovie")

favMovie="Jaws"
print(favMovie)

500

Explain why this code wouldn't work. print("Hello" + 5)

You can't combine different data types.

500

Write a code that shows an addition operation which prints the answer 10 on the console.

print(5+5)

500

Write the code to ask the user for a number. Print it and add 3 to it. Make sure to cast it as an integer.

num = int (input ("Enter a number: "))
print (num + 3)

500

Set up your own variable name and value and print it to the console.

fav_animal="dog"
print(fav_animal)

500

best_day="Saturday"
print(bestDay)

best_day="Saturday"
print(best_day)