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
Instructor Alec KretchJAN. 2, 2021 AT 10:29 PMstarTop Answer
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?
  • A.
  • B.
  • C.
  • D.

Was this helpful?

(Voting helps us personalize your learning experience!)

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