Using python:
Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order functions to simplify the design.
Use this file with random numbers

7804
8426
7301
6911
8057
7115
1977
455
5970
8420
9073
2965
5882
3570
3268
2089
7782
2296
8427
6845
7866
2030
3130
435
1615
749
5292
3138
2577
8577
284
7786
3564
9036
8525
8030
8623
7508
6864
5615
2251
2034
7158
8111
9426
5727
1010
7058
2278
6055
2207
878
5546
7937
234
3593
8318
1101
1829
1213
3457
5164
2218
1701
3167
8852
4973
5925
252
5779
385
6182
6154
8007
1303
4694
1132
9678
9644
9824
1075
4123
8714
3316
2798
8382
4345
5755
2411
7561
6913
7297
3572
8377
6254
5065
5804
9632
8072
8818
5735
8701
5990
8221
9628
1373
8439
7257
2908
2032
7586
3594
1772
9176
5502
7912
2981
9819
8771
3093