Category: code completion

Question: You're tasked with analyzing a list of numbers in Python. Create a function named analyze_numbers that takes a list of numbers as a parameter and returns a dictionary containing the following information: 1. The total number of elements in the list. 2. The sum of all the numbers. 3. The average (mean) of the numbers. 4. The largest number in the list. 5. The smallest number in the list.

Instructions:

Refresh the page or click solve again if you misplaced any block

sum(data)
max(data)
min(data)
analysis
analyze_numbers
[1,23,45,90,105]
/len(data)


import numpy as np
data=
      
def analyze_numbers(data): analysis={"number of elements": len(data), "sum":
      
, "Average": sum(data)
      
, "biggest number":
      
, "smallest number":
      
} return
      
result =
      
(data) print(result)

Output:

{'number of elements': 5, 'sum': 264, 'Average': 52.8, 'biggest number': 105, 'smallest number': 1}