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.
equality
alignment
contrast
Answer:
contrast
Explanation:
Answer:
I'm pretty sure it's contrast
Explanation:
It would be contrast because when you're looking for a highlighting color, you'd want to use colors that stand out from the rest. This helps you find what you want to see again very easily.
I'm sorry if this is wrong, but if it's right pls vote me brainliest
B. press the Ctrl and C keys on the keyboard
C. press the Ctrl and A keys on the keyboard
D. press the Ctrl and Z keys on the keyboard
The answer is B: press the Ctrl and C keys on the keyboard
The Ctrl and C key is the standard combination keys on the keyboard that is used to copy any selected text or objects while in a user interface environment. Janice is required to press the C key while holding down the Ctrl key to copy all the content to the new workbook.
B. group; group
C. single; single
D. group; single
Spelling and Grammar
Track Changes
Comments and Track Changes
The answer is B: Spelling and Grammar
Nick knows that it is important to check for spelling and grammar mistakes before distributing his content. Fortunately, Microsoft Word makes it easier to spell check his work all at once by running the spelling and grammar checker. To do this on his Word document, he is required to click the Review tab and then click the Spelling or Spelling & Grammar button. If Word finds any mistakes, a dialog box will pop up with an option to correct.