def nth(n, coll):
    """
    Returns an Nth element of a passed collection.
    Supports iterators without `__getitem__` method.
    Returns None if no item can be gotten.
    """
    if hasattr(coll, '__getitem__'):
        try:
            return coll[n]
        except IndexError:
            return None
    elif hasattr(coll, '__iter__'):
        iterator = iter(coll)
        for x in range(n + 1):
            try:
                val = next(iterator)
            except StopIteration:
                return None
        return val
    else:
        return None
