This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Conditionals and Control Flow Forum

View Course » View Exercise

690 points
D40259d3c97b5ce551d23c6e409eb7e9?s=140&d=retro
Submitted by
hain54
over 4 years ago

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.


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.

659 points
51cd2edf7c82caa380012aaf_490134716
Submitted by
Tim Cloak
about 4 years ago