Assignment#7 - Mohammed Abdul Wasay

  1. Write a python function that returns the index of the smallest element in a list of integers. If the number of such elements is greater than 1, return the smallest index. Use the following function header: def indexOfSmallestElement(lst):
  1. Write the python function mostCommonName, that takes a list of names (such as ["Jane", "Aaron", "Cindy", "Aaron"], and returns the most common name in this list (in this case, "Aaron"). If there is more than one such name, return a set of the most common names. So mostCommonName(["Jane", "Aaron", "Jane", "Cindy", "Aaron"]) returns the set {"Aaron", "Jane"}. If the set is empty, return None. Also, treat names case sensitive, so "Jane" and "JANE" are different names.
  1. Write the python function isPalindromicList(a) that takes a list and returns True if it is the same forwards as backwards and False otherwise.