
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
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Logos
Quiz
•
6th - 9th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
21 questions
Factoring Trinomials (a=1)
Quiz
•
9th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...