B. remain in the original document.
C. delete the original document.
D. link it to the original document.
Answer:
from functools import reduce
def mean(mylist):
score = reduce(lambda x,y: x + y, mylist)/ len(mylist)
return score
def median(mylist):
sorted(mylist)
list_len = len(mylist) % 2
i = round(len(mylist)/2)
x = len(mylist)//2
if list_len == 0:
median = (mylist[x] + mylist[x+1]) / 2
else:
median = mylist[i]
return median
def mode(mylist):
unique = set(mylist)
unique = list(unique)
collector = [mylist.count(key) for key in unique]
maxi = max(collector)
loc = collector.index(maxi)
return unique[loc]
def main():
scores = input( 'Enter list of numbers: ').split(",")
scores = [int(score) for score in scores]
operation = input('Enter operation: ')
operator = ['mean', 'median', 'mode']
for x in iter(list, 0):
if operation in operator:
break
print("Invalid operation: ")
operation = input('Enter operation')
index_loc = operator.index(operation)
if index_loc == 0:
return mean(scores)
elif index_loc == 1:
return median(scores)
#return np.median(scores) can be used of the defined function
elif index_loc == 2:
#return stats.mode(scores)[0] can be used of the defined function
return mode(scores)
print( main( ) )
Explanation:
The main python function calls conditionally three statistical functions namely mean, median and mode. It prompts for user input for a list of integer numbers and a function name name to return the corresponding result.
Analog signals primarily travel over telephone lines.
Telephone lines are designed to transmit analog signals, which are continuous waveforms representing voice or audio data. These analog signals are converted from the human voice by analog microphones and then sent over the telephone network. The telephone network, historically comprised of copper wires, was optimized for analog signal transmission.
Analog signals are characterized by their ability to convey a wide range of frequencies, allowing them to carry voice and other audio signals effectively. When you speak into a telephone, your voice is converted into analog electrical signals, which are then transmitted to the receiving end. At the receiving end, these analog signals are converted back into sound waves for the recipient to hear.
It's worth noting that modern telephone networks, especially in developed countries, have largely transitioned to digital transmission using technologies like Voice over IP (VoIP). In these cases, your voice is digitized into binary data packets for transmission over the internet. However, even in these digital systems, the initial conversion from voice to digital format often occurs at the analog-to-digital interface in your device, such as a microphone or cell phone.
Learn more about Telephone lines
#SPJ11
Answer:
analogue signals
Explanation:
B. leave the computer turned off.
C. unplug the computer from the wall.
D. none of the above
Answer:
B. leave the computer turned off.
Explanation: