def bits(bytes=None, kilobytes=None, megabytes=None, gigabytes=None,
    terabytes=None, petabytes=None):
    """Usage: Convert to bits. Example: bits(megabytes=23)"""
    if bytes is not None:
        return bytes * 8
    elif kilobytes is not None:
        return kilobytes * 8000
    elif megabytes is not None:
        return megabytes * 8000000.0
    elif gigabytes is not None:
        return gigabytes * 8000000000.0
    elif terabytes is not None:
        return terabytes * 8000000000000.0
    elif petabytes is not None:
        return petabytes * 8000000000000000.0
    else:
        raise Exception(
            'You must specify one value. Example: bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes'
            )
