“”” Q4: Writing a Program 4 marks Write a program (not a function!)…

Question Answered step-by-step “”” Q4: Writing a Program 4 marks Write a program (not a function!)… “””Q4: Writing a Program4 marksWrite  a program (not a function!) that asks the user for nonnegative integers,one integer per line.When the user is finished entering their integers, they enter a negative integerto tell the program to stop asking them for more integers.Once the input is complete, the program prints “No integers to average”if the user provided no nonnegative integers,and the average of the nonnegative integers otherwise.You must NOT use lists, tuples, or dictionaries in your code.Here is a sample program run where the user enters 4 and then 8 and then -1.The program outputs Average: 6.048-1Average: 6.0Here is another run where the user types -3 to the first prompt.The program outputs No integers to average-3No integers to average”””# TODO: Your program here (Please post the code) Computer Science Engineering & Technology Python Programming CSC 108 Share QuestionEmailCopy link Comments (0)