Check the principles of minimalist code in the [intro to the first challenge] (https://edabit.com/challenge/2XLjgZhmACph76Pkr).
In the Code tab you will find a code that is missing a single character in order to pass the tests. However, your goal is to submit a function as minimalist as possible. Use the tips in the tips section down below.
Write a function that returns the string "even" if the given integer is even, and the string "odd" if it's odd.
Converting a boolean, or something that will ultimately be interpreted as a boolean, into a boolean is redundant.
For example, the code:
boolean = bool(x < 4)
return boolean == True
Is equivalent to simply:
return x < 4
<, <=, ==, !=, >=, > will always result in a boolean, therefore using the function bool() is totally unnecessary.boolean == True is redundant, as it will always return boolean.boolean we could use boolean == False. However, a much cleaner way of doing this is simply not boolean.