This is for an intro to python class:# This program defines the function# ask_for_numbers_and_print_sum. It accepts an# int. It asks for that many numbers and prints# the sum. Currently, it has a problem related# to namespaces. See if you can fix it!def ask_for_numbers_and_print_sum(input): total = 0 for i in range(input): total += int(input(‘Enter number: ‘)) print(total)ask_for_numbers_and_print_sum(3)
Expert Answer
An answer will be send to you shortly. . . . .