
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
6 questions
Course - What's your research level?
Presentation
•
University
10 questions
Haiku
Presentation
•
University
8 questions
Variables and Expressions
Presentation
•
University
4 questions
SQL INSERT INTO Statement
Presentation
•
University
7 questions
DESPEJE DE FORMULAS
Presentation
•
University
6 questions
Animal Kingdom
Presentation
•
University
6 questions
Chemistry 1 Quiz Chapter 1-4
Presentation
•
University
6 questions
Belief in the black magic
Presentation
•
University
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
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University