
Python OOP Lesson 1 Part 2
Presentation
•
Computers
•
University
•
Hard
Karen Ahmed
Used 14+ times
FREE Resource
4 Slides • 5 Questions
1
Object-Oriented Programming Lesson 1
Procedural Python
2
Python Basics
print() outputs text to the screen.
input() accepts user input.
Variables need to be assigned a value before they can be used.
Selection is made using if-else or if-elif-else statement blocks.
Python uses indentation for selection, iteration and functions.
Functions are defined with the keyword def.
Strings need to be surrounded with quotes
3

QuickCalculator2 - Replit
You can open this webpage in a new tab.
4
Multiple Choice
Which function outputs text to the terminal?
output()
write()
print()
type()
5
Multiple Choice
What is the Python syntax for creating a variable and assigning the number 10 to it?
variable_name == 10
variable_name = 10
def variable_name = 10
new variable_name = 10
6
Multiple Choice
What is the output of this code?
cool_number
210
42
7
Multiple Choice
Which character is used for a comment in Python?
#
*
"
/
8
Multiple Choice
What happens if we run this code in Python?
"message" is printed
"What a cool message!" is printed
Python throws a syntax error
9

GuessTheNumberGame - Replit
You can open this webpage in a new tab.
Object-Oriented Programming Lesson 1
Procedural Python
Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
8 questions
The Magician's Nephew ch. 8-15
Presentation
•
University
6 questions
Lesson Topic 1
Presentation
•
University
8 questions
Training
Presentation
•
University
8 questions
Dasar pemrograman
Presentation
•
University
10 questions
Cardiovascular System
Presentation
•
University
5 questions
Welcome to CIS 150
Presentation
•
University
4 questions
SQL UPDATE Statement
Presentation
•
University
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
20 questions
Brand Trivia
Quiz
•
9th Grade - University
10 questions
Would you rather...
Quiz
•
KG - University
21 questions
Mapa países hispanohablantes
Quiz
•
1st Grade - University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
12 questions
CE 2b Early Documents Review
Quiz
•
7th Grade - University
30 questions
Multiplying and Dividing Integers
Quiz
•
6th Grade - University
13 questions
Back to School
Quiz
•
KG - University