
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
14 questions
2 Organizarea datelor pe suport extern
Presentation
•
9th Grade
11 questions
Possessive adjectives
Presentation
•
9th Grade
11 questions
Naming acids
Presentation
•
9th Grade
15 questions
Hockey
Presentation
•
9th Grade
16 questions
Writing Expressions
Presentation
•
9th Grade
16 questions
Scientific Variables Review
Presentation
•
9th Grade
16 questions
Lesson 2 - Technology in Society
Presentation
•
9th Grade
12 questions
Scatterplots & Linear Regression
Presentation
•
8th - 9th Grade
Popular Resources on Wayground
20 questions
STAAR Review Quiz #3
Quiz
•
8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
6 questions
Marshmallow Farm Quiz
Quiz
•
2nd - 5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade
Discover more resources for Computers
7 questions
Warm Up 04.01.2026
Quiz
•
9th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Linear Functions Review
Quiz
•
9th Grade
30 questions
English 1 STAAR Review
Quiz
•
9th Grade
10 questions
Pythagorean Theorem and its Converse
Quiz
•
7th - 9th Grade
14 questions
Ecological Succession: Primary and Secondary
Quiz
•
9th Grade
2 questions
APRIL 2_4F Practice
Quiz
•
9th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade