from list_op import * def main(): """ Five test cases for the function average. """ print(f"average([2,3,4,10]): {average([2,3,4,10]):-5f}") print(f"average([]): {average([]):-5f}") print(f"average([-99]): {average([-99]):-5f}") print(f"average([13,0,-55,92,-110,-55]): {average([13,0,-55,92,-110,-55]):-5f}") print(f"average([123456789,-909877737,1]): {average([123456789,-909877737,1]):-5f}") """ Five test cases for the function remove_duplicates. """ print(f"remove_duplicates([]): {remove_duplicates([])}") print(f"remove_duplicates([-1,-1,-1]): {remove_duplicates([-1,-1,-1])}") print(f"remove_duplicates([1,2,3,3,1,2,4,3]): {remove_duplicates([1,2,3,3,1,2,4,3])}") print(f"remove_duplicates([5,11,908774747,6,-126]): {remove_duplicates([5,11,908774747,6,-126])}") print(f"remove_duplicates([3-2,4//2,1,5-4,2]): {remove_duplicates([3-2,4//2,1,5-4,2])}") """ Five test cases for the function count_greater_occurrences. """ print(f"count_greater_occurrences([],0): {count_greater_occurrences([],0)}") print(f"count_greater_occurrences([-4,-3,-118],-1: {count_greater_occurrences([-4,-3,-118],-1)}") print(f"count_greater_occurrences([3,4,18983,3,4,0,-7],2): {count_greater_occurrences([3,4,18983,3,4,0,-7],2)}") print(f"count_greater_occurrences([2*3,9-5,-10,4*6],5): {count_greater_occurrences([2*3,9-5,-10,4*6],5)}") print(f"count_greater_occurrences([-22222,3],-22222): {count_greater_occurrences([-22222,3],-22222)}") """ Five test cases for the function sum_squares. """ print(f"sum_squares([]): {sum_squares([])}") print(f"sum_squares([2,3,4]): {sum_squares([2,3,4])}") print(f"sum_squares([-654646]): {sum_squares([-654646])}") print(f"sum_squares([3*2,6,7-1,-6,-6,-6]): {sum_squares([3*2,6,7-1,-6,-6,-6])}") print(f"sum_squares([123456789,-123456789,1]): {sum_squares([123456789,-123456789,1])}") if __name__ == '__main__': main()