You can use this assignment in your class!
Mastery Progress(100.0%)
i

Object-Oriented Programming (OOP) in Python Assignment

You answeredJUST NOW
Python
You passed all test cases!
STDIN
1, 1, 1, 1
Expected STDOUT
This shape is a square
1
Your STDOUT
This shape is a square
1
STDIN
4, 2, 4, 2
Expected STDOUT
This shape is a rectangle
8
Your STDOUT
This shape is a rectangle
8
STDIN
2
Expected STDOUT
This shape is not a rectangle
0
Your STDOUT
This shape is not a rectangle
0
STDIN
2, 2, 2, 2, 2
Expected STDOUT
This shape is not a rectangle
0
Your STDOUT
This shape is not a rectangle
0
STDIN
4, 15, 3, 15
Expected STDOUT
This shape is not a rectangle
0
Your STDOUT
This shape is not a rectangle
0
STDIN
4, 4, 2, 2
Expected STDOUT
This shape is not a rectangle
0
Your STDOUT
This shape is not a rectangle
0
STDIN
15, 10, 15, 10
Expected STDOUT
This shape is a rectangle
150
Your STDOUT
This shape is a rectangle
150
STDIN
9, 10, 9, 10
Expected STDOUT
This shape is a rectangle
90
Your STDOUT
This shape is a rectangle
90

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchAPR 2, 2021, 12:44:38 PM
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
imgObject-Oriented Programming (OOP) in Python presentation (pages 5-7)

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
Select one of the following options:
  • A.
  • B.
  • C.
  • D.
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.