Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the following functions in PYTHON 1a. Write a function in PYTHON named sum_list that accepts a list as a parameter, the function will return
Write the following functions in PYTHON 1a. Write a function in PYTHON named sum_list that accepts a list as a parameter, the function will return the sum of that list. 16. Write a function in PYTHON named my_age that accepts an integer as a parameter, the function will add all numbers from 1 onwards until that accepted integer and return the total value. For example, if the user were to enter you are not writing the code to accept user entry) 10, the program would calculate the sum of 1+2+3+4+5+6+7+8+9+10, and return the value. 1c. Write a function in PYTHON named my_list that accepts a list as a parameter, then returns the MIN and MAX numbers. Both need to be returned in a single function, not two (2) functions. 1d. Write a function in PYTHON named my_avg that accepts a list as a parameter, that will return the average. 1e. Write a function in PYTHON named my_med that accepts a list as a parameter and returns the median value
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started