def nth_element(lst, n): if n >= len(lst): return "" return lst[n]