This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by hain54
almost 11 years

This exercise doesn't teach good programming practice

It says use an else statement in the general form but fails to account for situations where the number might be negative (although not applicable in the example, but negative values or even non-integers could be used - like a number written in words) or there may be something else that isn’t an integer in the value.

It would be good to just teach the exercise including any possible error exceptions.

Answer 51d942d2282ae3e68b03521e

1 vote

Permalink

Codeacademy give enough of their time to provide us with free guides. You could start off with not knowing anything to being a pro. Therefore the guides are detailed enough to teach us. I think they’re fine how they are.

points
Submitted by Tim Cloak
almost 11 years