## ## Exercise: ## ## Define a function that counts how many elements the given list has. ## def count_elements(given_list): count = 0 for element in given_list: count += 1 return count ## To test: print "[]", count_elements([]) print "[1, 2, 3, 4, 5]", count_elements([1, 2, 3, 4, 5])