Added Input checks for odd_list function