Skip to content
/ is_even Public

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

Notifications You must be signed in to change notification settings

Roysav/is_even

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages