Timothy Mattingly10,665 Points
Broke the code when I raised an exception
So, I'm following along and when I got to this point, the program stopped functioning right. When I got here, the console is now printing out, each person owes $none which I understand is a null value. Also in the previous lesson, when I answered the question How much? with a string like "Too much", the console printed:
that's not a valid input, try again...
Now when I enter the string, it prints: that's not a valid input, try again...
(could not convert string to float: 'too much')
Here's the code I'm working with:
Steven Parker182,024 Points
It sounds like it's performing correctly. When you enter a non-numeric input, the "float" conversion causes an exception which would then print the "that's not a valid input, try again..." message.