#!/usr/bin/python3
"""
Module containing the function element_at
"""


def element_at(my_list, idx):
    """ returns an element from a list """
    if (idx < 0) or (idx >= len(my_list)):
        return None
    else:
        return my_list[idx]
