diff --git a/is-even-function/is-even-function.py b/is-even-function/is-even-function.py new file mode 100644 index 00000000..b3346566 --- /dev/null +++ b/is-even-function/is-even-function.py @@ -0,0 +1,8 @@ +def is_even(num): + return num % 2 == 0 + +result1 = is_even(6) +result2 = is_even(7) + +print(result1) # Should print True +print(result2) # Should print False