Challenge: Improving Even or Odd Checker
Task
Swipe to start coding
In one of the previous tasks, we created an "Even or Odd" checking program. The code for that program is given.
Make the code shorter by removing the second conditional statement and using an else
block instead.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.33
Challenge: Improving Even or Odd Checker
Swipe to show menu
Task
Swipe to start coding
In one of the previous tasks, we created an "Even or Odd" checking program. The code for that program is given.
Make the code shorter by removing the second conditional statement and using an else
block instead.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 1.33SectionΒ 3. ChapterΒ 8
single