You are viewing a single thread.
View all comments 52 points
*
import re
def is_even(i: int) -> bool:
return re.match(r"-?\d*[02468]$", str(i)) is not None
23 points
5 points
import re
def is_even(i: int) -> bool:
return re.match(r"-?\d*[02468]$", str(i)) is not None
9.2K
Monthly active users
9K
Posts
59K
Comments