Jan-17-2019, 12:58 AM
Hey all, I just started coding a few days ago and I'm trying to make a calculator to solve Cramer's rule. I wrote a code that takes values from a user, solves the equation, and works. My problem lies here; There can be a possibility of infinite solutions, and zero solutions. I wrote an 'If' statement saying that if certain variables equal certain variables, to simply print "This system has infinite solutions". The ZeroDivisionError appears after I run the script and input values I know will lead to an infinite solution. I'm not sure why I'm getting this error because I have the If statement located above the regular equation where the zero would be divided. Sorry if this is a paragraph of ramble but I'll include pictures to help. I've tried multiple things like "Except ZeroDivisionError:" and relocating the position of the division. Thanks for your time,
Mitch
**Note: Is there like an "If true, End here" kind of command?
Mitch

**Note: Is there like an "If true, End here" kind of command?