We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c15b8c commit 09b2984Copy full SHA for 09b2984
maths/is_even.py
@@ -0,0 +1,8 @@
1
+def is_even(n: int) -> bool:
2
+ """
3
+ Check whether a number is even.
4
+
5
+ :param n: Integer number
6
+ :return: True if even, False otherwise
7
8
+ return n % 2 == 0
0 commit comments