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
John,,
Expected STDOUT
John cannot afford their rent.
Your STDOUT
John cannot afford their rent.
STDIN
Annabelle,1000.50,1250.00
Expected STDOUT
Annabelle can afford their rent.
Your STDOUT
Annabelle can afford their rent.
STDIN
Sarah,,1210.34
Expected STDOUT
Sarah cannot afford their rent.
Your STDOUT
Sarah cannot afford their rent.
STDIN
Jason,,1210.36
Expected STDOUT
Jason can afford their rent.
Your STDOUT
Jason can afford their rent.
STDIN
Ricky,1500,
Expected STDOUT
Ricky cannot afford their rent.
Your STDOUT
Ricky cannot afford their rent.
STDIN
Chase,790.00,1100.50
Expected STDOUT
Chase can afford their rent.
Your STDOUT
Chase can afford their rent.

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchJAN 2, 2021, 10:29:40 PM
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
imgObject-Oriented Programming (OOP) in Python presentation (pages 3, 4)

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.