Write a python function that returns first element of a list


Topic: Write a python function that returns first element of a list

Solution

def head(lst):
  return lst[0]



List all Python Programs