Tell us what’s happening:
Is the example where 4 is deposited to the wallet and it fails the validation wrong? 4 is not < 0, so the error should not be raised. If it’s correct as written, can someone explain why it’s failing?
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Safari/605.1.15 Ddg/26.1
Challenge Information:
Understanding Object Oriented Programming and Encapsulation - What is Object-Oriented Programming, and How Does Encapsulation Work?
1 Like
I think you are correct and it’s a mistake.
If you are ever in doubt I am a fan of empirical evidence. You could test the code here:
https://www.programiz.com/python-programming/online-compiler/
Are you interested in opening an Issue for this?
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
I’d be happy to test and then open an Issue, but it appears that once one has completed a section in the syllabus you can’t return to it. I don’t want to open the Issue without being able to test it. If there’s a way to return to the section that I’m not aware of, I’d be happy to learn.
Your links worked and I was able to return to the prior section. The links were not active on the curriculum page I was on when working through the course.
I submitted the issue after testing locally, where the code ran successfully without reporting a ValueError for the test case.
1 Like