This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency