Wednesday, October 22, 2008

99 problems - python - 3

Find the K'th element of a list. The first element in the list is number 1.

def kth_item(lst):
return lst[k-1]

No comments: