
Printing and Variables Lesson
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Daniel Clark
Used 3+ times
FREE Resource
8 Slides • 10 Questions
1
Printing, Variables, and Variable Types
2
Use the print function (i.e. print ())
must have parentheses ()
must have double quotation marks, "Hello"
must begin with the word print
How to Print or Display Text
3
Multiple Choice
When printing in python, you must have the following?
the word 'print'
double quotation marks
parentheses ()
all of the above.
4
Multiple Choice
Pilar writes the following code:
print("Hello, my name is Pilar!") What will the computer display?
5
Multiple Choice
Anything you want printed in Python must be within the ...?
parentheses and quotes
curly braces only
quotes only
brackets only
6
7
Str(string) - characters, words, letters, spaces
Int (integers) - positive and negative whole numbers
Float - positive and negative decimal numbers.
Variable Types
8
Match
Match the example to its variable type.
"Hello, World!"
-9
4.99
" @ "
100
string
integer
float
string
integer
string
integer
float
string
integer
9
Variable Naming
A variable stores information to be used later.
A variable has a
NAME,
TYPE,
SAVED VALUE.
10
Example
last_name = "Reyes"
Variable name is last_name
Type = String
Assigned value = Reyes
11
Multiple Choice
The following variable, shirt_price = 19.99, has a value of ?
12
Multiple Choice
What is variable name for the following variable, temperature = 99.8 ?
13
Multiple Choice
The variable, location = "Dallas, TX", is what type of variable?
float
14
Using and printing a variable
To use a variable, we first must define and declare a variable
Create a variable name and give it an assigned value. Then to print the variable simply put:
print (variable_name)
the print function will print the value attached to the variable name.
15
Dallas, TX
Line 1 : location = "Dallas, TX"
Line 2: print (location)
Example
16
Multiple Choice
Lincoln wants to create a variable called hourly wage with an assigned value of 15.00, which naming is correct?
17
Multiple Choice
Sara creates the following variable, hours_worked = 12, and she does the following, print(hours_worked). What will be printed?
hours_worked
hours_worked = 12
21
18
Poll
What is your understanding of printing, variables, and variable types?
1 = I understand not at all.
2 = I understand somewhat.
3 = I understand mostly, with little confusion.
4 = I understand completely.
Printing, Variables, and Variable Types
Show answer
Auto Play
Slide 1 / 18
SLIDE
Similar Resources on Wayground
15 questions
Scientific Investigation
Presentation
•
9th - 10th Grade
17 questions
Multiplying Exponents
Presentation
•
9th Grade
17 questions
Exponential Functions: Growth and Decay
Presentation
•
9th Grade
10 questions
FUNGSI MENU DAN IKON
Presentation
•
9th Grade
17 questions
Systems and Inequalities Review
Presentation
•
9th Grade
14 questions
Gerunds
Presentation
•
8th Grade
15 questions
Angle Addition
Presentation
•
9th Grade
16 questions
Exponent Rules Review Quizizz
Presentation
•
9th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade