Currently this exercise specifically asks both for assignment of a and b and to use a separate function for doing the calculations. The simpler solution to this is to just call the appropriate function from inside the conditions and that's what a lot of students did. Re-write to allow for this approach.
Currently this exercise specifically asks both for assignment of
a
andb
and to use a separate function for doing the calculations. The simpler solution to this is to just call the appropriate function from inside the conditions and that's what a lot of students did. Re-write to allow for this approach.