Question
In python write a hybrid module myListFunc.py for number list operations. This module should include the following functions: - fillList(L): fill up the empty list
In python write a hybrid module myListFunc.py for number list operations. This module should include the following functions:
- fillList(L): fill up the empty list L with user input
- maxList(L): return the maximum value of the list L
- avgList(L): return the average value of the list L
- count(v, L): count the number of occurrences of number v in the list L
- replace(old, new, L): replace the old number value with new number value in the list L
Your program should meet the following requirements: - No built-in functions (such as max(), min(), count(), replace) are allowed to use in the function definition.
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