Roysav / is_even

check if a number is divisible by 2 using the real "pythonic way"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is_even

Check if a number is divisable by 2

  • 🐢 blazingly slow
  • 🤮 uses lambda functions
  • 🥸 unreadable
  • 💩 poor documantation]
  • 💀 uses double quotes and single quotes in different places for no apperent reason

Usage

from is_even import EvenNumber


print(isinstance(5, EvenNumber))  # False
print(isinstance(2, EvenNumber))  # True

BTW

what's pep8?

About

check if a number is divisible by 2 using the real "pythonic way"


Languages

Language:Python 100.0%