""" Use this file to develop and test your Assignment 3 functions S0, 2020.""" def main(): print_header(3, "get_list_nums_without_9()") test_get_list_nums_without_9() #-------------------------------------------------- # 3333333333333333333333333333333333333333333333333 # Returns a new list containing all the numbers # from the parameter list which do not contain # the digit 9 #-------------------------------------------------- """ Define the get_list_nums_without_9() function which is passed a list of numbers as a parameter. The function returns a new list containing all the numbers (integers) from the parameter list which do not contain the digit 9. If the parameter list is empty or if all of the numbers in the parameter list contain the digit 9, the function should return an empty list. For example, the following code: print("1.", get_list_nums_without_9([589775, 677017, 34439, 48731548, 782295632, 181967909])) print("2.", get_list_nums_without_9([6162, 29657355, 5485406, 422862350, 74452, 480506, 2881])) print("3.", get_list_nums_without_9([292069010, 73980, 8980155, 921545108, 75841309, 6899644])) print("4.", get_list_nums_without_9([])) nums = [292069010, 73980, 8980155, 21545108, 7584130, 688644, 644908219, 44281, 3259, 8527361, 2816279, 985462264, 904259, 3869, 609436333, 36915, 83705, 405576, 4333000, 79386997] print("5.", get_list_nums_without_9(nums)) prints: 1. [677017, 48731548] 2. [6162, 5485406, 422862350, 74452, 480506, 2881] 3. [] 4. [] 5. [21545108, 7584130, 688644, 44281, 8527361, 83705, 405576, 4333000] """ def get_list_nums_without_9(a_list): return [] def test_get_list_nums_without_9(): """ size_of_list = random.randrange(15, 30) nums = get_nums_list(4, 9, size_of_list) print(nums) """ print("1.", get_list_nums_without_9([589775, 677017, 34439, 48731548, 782295632, 181967909])) print("2.", get_list_nums_without_9([6162, 29657355, 5485406, 422862350, 74452, 480506, 2881])) print("3.", get_list_nums_without_9([292069010, 73980, 8980155, 921545108, 75841309, 6899644])) print("4.", get_list_nums_without_9([])) nums = [292069010, 73980, 8980155, 21545108, 7584130, 688644, 644908219, 44281, 3259, 8527361, 2816279, 985462264, 904259, 3869, 609436333, 36915, 83705, 405576, 4333000, 79386997] print("5.", get_list_nums_without_9(nums)) #-------------------------------------------------- # Print header lines #-------------------------------------------------- def print_header(number, text): text = str(number) + ". " + text print("-" * 30) print(str(number) * 30) print(text) print("-" * 30) main()