
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
Sintesis
Presentation
•
University
6 questions
INTRODUCING YOURSELF
Presentation
•
University
6 questions
Making a Budget: Managing Money
Presentation
•
University
9 questions
Database Normalization
Presentation
•
12th Grade - University
8 questions
8- Licencia y salario vacacional
Presentation
•
University
6 questions
Lección nomenclatura
Presentation
•
12th Grade
9 questions
CHRISTMAS TRIVIA GAME
Presentation
•
Professional Development
9 questions
Resumen
Presentation
•
University
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