Skip to content

recreationx/is-odd-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

is-odd-ai

PyPI - Version

A project inspired by the npm version is-odd-ai

is-odd-ai uses OpenAI's GPT-4o-mini model to determine if a number is odd or even. AI to the moon πŸš€πŸš€πŸŒ!

Installation

To install is-odd-ai, use pip:

pip install is-odd-ai

Usage

To use is-odd-ai, you will need an OpenAI key.

Here is an example.

from is_odd_ai import OddChecker

odd_checker = OddChecker("api key here")
odd_checker.is_odd(5) # True
odd_checker.is_odd(6) # False
odd_checker.is_odd("abc") # Hopefully a ValueError. AI to the moon!

Contributing

Be part of this project! Open to contributions.

License

MIT License.

About

Check if a number is odd or even using AI. AI to the moon πŸš€πŸš€πŸŒ!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages