Question: PYTHON Write a program that opens file numbers.txt which contains a series of names followed by integers. The program read the data from the file
PYTHON Write a program that opens file numbers.txt which contains a series of names followed by integers. The program read the data from the file and prints the count of odd numbers, the count of negative numbers, the sum of negative numbers, and the average of positive numbers. For example, if the input file contains the following text:
Dan 3
Cordelia 7
Tanner 14
Mellany 13
Curtis -4
Amy 12
Nick 6
Tina 4
Jack -13
Sarah 12
Robert -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
