def get_index_of_smallest(numbers): smallest_index = [] for element in range (len(numbers)): element = numbers.index(min(numbers)) smallest_index = element + 1 return smallest_index def test_get_index_of_smallest(): list1 = [23, 3, 6, 5, 12, 9, 7, 4] print(get_index_of_smallest(list1)) test_get_index_of_smallest() def most_frequent(List): counter = 0 num = List[0] for i in List: curr_frequency = List.count(i) if(curr_frequency> counter): counter = curr_frequency num = i return num List = ["Jane", "Aaron", "Cindy", "Aaron"] print(most_frequent(List)) def check_palindrome_list(my_str): if my_str == my_str[::-1]: print("The list is a palindrome") else: print("The list isn't a palindrome") my_list = [77, 1, 56, 65, 1, 77] print("The list is :") print(my_list) my_list = ' '.join([str(elem) for elem in my_list]) check_palindrome_list(my_list)