1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
damaskus [11]
3 years ago
14

Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order func

tions to simplify the design.
Computers and Technology
1 answer:
lara [203]3 years ago
4 0

Answer:import functools

# open your file

file = open("integers.txt", 'r')

file = file.read()

# put numbers into a list

file = file.split()

# convert list into integers

file = list(map(int, file))

# use lambda function to get average.

print(functools.reduce(lambda x, y: x+y / len(file), file, 0))

Explanation:

You might be interested in
Self-disclosure is most likely to occur _____________.a.
Feliz [49]

The answer is..

C.  During one-on-one conversations

4 0
3 years ago
Read 2 more answers
Match the items with their respective descriptions. to navigate between worksheets to protect a worksheet to change the position
Rzqust [24]
To navigate between worksheets
press Ctrl and Page Up or Page Down keys

to protect a worksheet
select a password

to change the position of a worksheet
drag the worksheet tab to the new position

to rename a worksheet
double-click the worksheet tab
8 0
3 years ago
Technology trends continue to increase the processing capabilities of mobile devices. The latest smartphones include up to 8 pro
baherus [9]

Answer:

Two circumstances under which it might be beneficial to offload application functionality from a powerful smartphone are Data Saving and Ransomware/Malware Protection.

Explanation:

Various data like documents, videos,photos etc can be offloaded to a cloud or cloud-let in order to prevent permanent data loss during inevitable as loss of phone, theft etc.  Such saved data can be easily retrieved from cloud storage when new phones are gotten without any loss. Also, in order to prevent total data and application loss by various various attacks, it is advisable that one stores various application and data on cloud servers to enable retrieval easily. Even some cloud servers offer backup security against such virus attacks.

6 0
3 years ago
What does the measurement tell you?<br><br> Schedule performance index
Natasha_Volkova [10]

Answer:

how close the project is to being completed compared to the schedule/ how far ahead or behind schedule the project is, relative to the overall project

Explanation:

3 0
3 years ago
1. In the space below, explain how the Table Tools can be accessed in Word.
Dvinal [7]

Answer:

Creating a Table

1) Click the Insert tab on the Ribbon

2) Click on Table

3) Highlight the number of columns and rows you’d like

OR

4) Click Insert Table

5) Click the arrows to select the desired number of columns

6) Click the arrows to select the desired number of rows

7) Click OK

3 0
3 years ago
Other questions:
  • The security administrator for PLABS.com recommends using a host-based firewall for all servers and workstations. What can a hos
    6·1 answer
  • How has social media changed professional networking?
    11·1 answer
  • When doing black and white photography, which file format should you use if possible? JPEG TIFF PNG RAW
    11·2 answers
  • This project involves writing a program that encodes and decodes messages. The program should prompt the user to select whether
    15·1 answer
  • ______ includes websites that encourage interaction and connection among people, businesses, and organizations.
    6·1 answer
  • Tiffany is writing a program to help manage a bake sale. She writes the following code which prompts the user to enter the total
    15·1 answer
  • When the Hyper-V role is added to a Windows Server 2016 server, the hypervisor creates the individual environments, each of whic
    5·1 answer
  • True/false
    8·1 answer
  • which server edition doesn't support any server roles that you would typically use with standard version
    6·1 answer
  • What are backup storage device of computer ?​
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!