def kth_item(lst):
return lst[k-1]
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.
Labels:
99 problems,
python
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment