Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 2 Problem 1.14 #278

Open
avikingvandal opened this issue Jul 23, 2022 · 2 comments
Open

Lesson 2 Problem 1.14 #278

avikingvandal opened this issue Jul 23, 2022 · 2 comments

Comments

@avikingvandal
Copy link

Hello! I am trying to work my way through the Ada Build work and do not know how to correct the error that comes up for solving problem 1.14, the error message is a "zerodivisonerror" but I don't know how to fix it since value cc is supposed to be zero. Is there a different way to code the problem?

@resmins
Copy link

resmins commented Jul 30, 2022

You did everything right!

It would end the program since computers don't usually like taking in a problem that divides by zero. So the error is letting you know that it can no longer go forward with the additional problems since it has essentially stopped your program. It can't and will not go forward. This is normal.

**Note: It would be nice if problems 1.15-1.17 were included before 1.14 since the rest of the problems can't be completed because 1.14 ends the code because it results in a "ZeroDivisionError: division by zero" error. Ending the program.

@sjdevilbiss
Copy link

I also had to double check this, thanks google! Since it's impossible to divide by zero (at least with the math we have now) it reports an error because it's unsolvable, just like resmins said. But to continue with the problems you can just comment out the 1.14 problem, type "#" on the front of the line or Command+/, and it will take that line out so the error doesn't prevent any other lines from being run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants