
Basic Python Review Lesson
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Daniel Clark
Used 35+ times
FREE Resource
9 Slides • 11 Questions
1
Python Basics Review
Printing, Variables, Type Conversion, Input Function, Concatenation
2
Displays any output to the console; can be math calculations and/or strings including text and number characters.
Print Function
3
Multiple Choice
What is the correct way to print "Hello, World!" in Python?
echo "Hello, World!"
print("Hello, World!")
System.out.print("Hello, World!")
printf("Hello, World!")
4
Multiple Choice
What will print(5 + 3) output?
5 + 3
8
Error
Nothing.
5
Printing variables
When printing a variable, no quatation marks are used; Otherwise, it will print the variable name itself as a string.
age = 12
print(age)
Console will print 12.
name = "Adam"
print("name")
The computer will print name, NOT Adam
6
Like a closet or storage box that you name and save data to be used later.
Variables
7
A variable that typically saves text, spaces, and characters. Can include numbers; Will always be surrounded by QUOTATION MARKS
Strings
Positive and negative whole numbers including zero; Used for math calculations.
number_of_students = 12
Integers
Positive and negative decimal numbers; Used for math calculations as well.
gas_price = 3.29
Floats
8
Multiple Choice
Which of the following is a correct variable assignment for a string?
name = "John"
name = 100
name = 10.5
name = True
9
Multiple Choice
What data type is the variable age = 16?
String
Integer
Float
Boolean
10
Multiple Choice
Which of the following is a float in Python?
x = 10
x = "10"
x = 10.0
x = True
11
Converts whatever is enclosed in the ( ) to a string.
str(10) => "10"
str ( ) function
Converts whatever is enclosed in the ( ) to an integer; If it's a decimal, it will round down.
int(3.5) => 3
int("3") = > 3
int ( ) function
Converts whatever is enclosed in the ( ) to a decimal;
float (3) => 3.0
float ( )
12
Multiple Choice
How do you convert a string, num = "123" to an integer in Python?
int(num)
str(num)
float(num)
bool(num)
13
Multiple Choice
What is the output of print(float(7))
7
7.0
Error
"7"
14
The Input Function or input ( )
A way to get someone to interact with the computer program and enter information that is saved to a variable.
name = input ("Hello, what is your name?" )
Your prompt goes in QUOTATIONS; so all data will be a string by default.
15
Multiple Choice
Which is the correct way to take input from the user in Python?
input( )
print ( )
raw_input( )
scanf( )
16
Type Conversion and input
This will convert the entered data from a string to a float (decimal).
float(int("prompt: "))
This will convert the entered data from a string to an integer.
int(input("prompt))
17
Multiple Choice
What will be the data type of the value returned by input() by default?
Integer
Float
String
Boolean
18
Concatenation (Adding Strings and variables)
We can use the addition (+) operator to combine multiple strings and/or variables into one.
print(first_name + middle_name + last_name)
print("I am " + str(age) + " years old.")
19
Multiple Choice
What is the result of the following code? print("Hello " + "World!")
HelloWorld!
Hello World!
Error
Hello
World!
20
Multiple Choice
Which of the following will combine a number and a string correctly?
print("Age: " + 25)
print("Age: " + str(25))
print("Age: " + float(25))
print("Age: " + 25.0)
Python Basics Review
Printing, Variables, Type Conversion, Input Function, Concatenation
Show answer
Auto Play
Slide 1 / 20
SLIDE
Similar Resources on Wayground
17 questions
Biochemistry Introduction
Presentation
•
9th Grade
14 questions
The von Neumann Architecture
Presentation
•
9th Grade
18 questions
MAINTAIN COMPUTER EQUIPMENT AND SYSTEMS
Presentation
•
9th - 10th Grade
16 questions
Systems of Equations: Graphing & Substitution Method
Presentation
•
8th - 9th Grade
16 questions
Quotation Marks/Dialogue
Presentation
•
9th - 10th Grade
16 questions
Evaluating Functions - Algebra
Presentation
•
9th Grade
15 questions
Lesson Variables
Presentation
•
9th Grade
13 questions
Procedure
Presentation
•
9th Grade
Popular Resources on Wayground
28 questions
US History Regents Review
Quiz
•
11th Grade
36 questions
Biology Regents Review
Quiz
•
9th - 10th Grade
20 questions
Math Review
Quiz
•
3rd Grade
38 questions
Regents Life Science General Review
Quiz
•
9th Grade
20 questions
Math Review
Quiz
•
6th Grade
21 questions
EOY Grade 6 Benchmark Assessment - Content Skills
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
36 questions
Biology Regents Review
Quiz
•
9th - 10th Grade
38 questions
Regents Life Science General Review
Quiz
•
9th Grade
45 questions
Earth and Space Science Regents: Exam Cram
Presentation
•
7th - 12th Grade
6 questions
Regression Practice
Quiz
•
9th Grade
25 questions
Biology Regents Review
Quiz
•
9th Grade
50 questions
US History Comprehensive Final Exam
Quiz
•
9th - 12th Grade
43 questions
Algebra 1 Final Review 2026
Quiz
•
9th Grade
36 questions
WMS Pre-algebra Final Review
Quiz
•
8th - 9th Grade