Jul 4, 2024
Creating an is_even function that is equivalent to not x % 2 adds bulk and slows your program down simply to make it a tiny bit easy for complete beginners to read your code.
You should not write your code for complete beginners: you should be writing it for the average programmer who understands the basics.
If you don't know what % means and aren't willing to learn it, you shouldn't be writing computer programs.