You answeredJUST NOW
Python
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.
Instructor solution
Object-Oriented Programming (OOP) in Python presentation (pages 3, 4)
By Alec Kretch (Apr 2, 2021)
You may exit out of this review and return later without penalty.