Menu

oddint()

Added in Version 1.0
Removed in Version 1.1

Usage

oddint(integer)
  • Returns True if integer is odd and False if it is even.
  • The integer argument must be an integer.

Examples

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from pydoodles import oddint
oddint(10)
False
oddint(12)
False
oddint(13)
True
oddint(15)
True
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Removal

oddint() was removed in 1.1 due its redundancy in relation to evenint(). If you wish to conduct tests for odd integers, consider using evenint() and checking for a False value.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.