#!/usr/bin/env python3
"""Example of Doctest"""
__appname__ = "test_control_flow.py"
__author__ = "Joseph Palmer <joseph.palmer18@imperial.ac.uk>"
__version__ = "0.0.1"
__license__ = "License for this code/"
__date__ = "Oct-2018"

## imports ##
import sys
import doctest # Import the doctest module

def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    #Define function to be tested
    if x % 2 == 0:
        return "%d is Even!" % x
    return "%d is Odd!" % x


# def main(argv): 
    # print even_or_odd(22)
    # print even_or_odd(33)
    # return 0

# if (__name__ == "__main__"):
    # status = main(sys.argv)
    
doctest.testmod()  

bdf54a6e46cf7288e58634a0d077b99a2aeb7d3e
<mask token>


def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    if x % 2 == 0:
        return '%d is Even!' % x
    return '%d is Odd!' % x


<mask token>

<mask token>


def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    if x % 2 == 0:
        return '%d is Even!' % x
    return '%d is Odd!' % x


doctest.testmod()

<mask token>
__appname__ = 'test_control_flow.py'
__author__ = 'Joseph Palmer <joseph.palmer18@imperial.ac.uk>'
__version__ = '0.0.1'
__license__ = 'License for this code/'
__date__ = 'Oct-2018'
<mask token>


def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    if x % 2 == 0:
        return '%d is Even!' % x
    return '%d is Odd!' % x


doctest.testmod()

<mask token>
__appname__ = 'test_control_flow.py'
__author__ = 'Joseph Palmer <joseph.palmer18@imperial.ac.uk>'
__version__ = '0.0.1'
__license__ = 'License for this code/'
__date__ = 'Oct-2018'
import sys
import doctest


def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    if x % 2 == 0:
        return '%d is Even!' % x
    return '%d is Odd!' % x


doctest.testmod()

#!/usr/bin/env python3
"""Example of Doctest"""
__appname__ = "test_control_flow.py"
__author__ = "Joseph Palmer <joseph.palmer18@imperial.ac.uk>"
__version__ = "0.0.1"
__license__ = "License for this code/"
__date__ = "Oct-2018"

## imports ##
import sys
import doctest # Import the doctest module

def even_or_odd(x=0):
    """even_or_odd - Find whether x is odd or even.

    :param x: int
      
    >>> even_or_odd(10)
    '10 is Even!'
    
    >>> even_or_odd(5)
    '5 is Odd!'
    
    whenever a float is provided, then the closest integer is used:    
    >>> even_or_odd(3.2)
    '3 is Odd!'
    
    in case of negative numbers, the positive is taken:    
    >>> even_or_odd(-2)
    '-2 is Even!'
    
    """
    #Define function to be tested
    if x % 2 == 0:
        return "%d is Even!" % x
    return "%d is Odd!" % x


# def main(argv): 
    # print even_or_odd(22)
    # print even_or_odd(33)
    # return 0

# if (__name__ == "__main__"):
    # status = main(sys.argv)
    
doctest.testmod()  
