Question
using python 1) given a list of values, return a tuples with the minimum and maximum values in the list. Write this code, don't use
using python
1) given a list of values, return a tuples with the minimum and maximum values in the list. Write this code, don't use built in min or max functions
2) given a list of values, return a list that contains only the even numbers from that list. Hint: x % 2 == 0 if x is even
3) Given a list of values, return a different list that has the values in reverse order. Write this code, don't use built list functions
Use this for testing your code
# -------- main ------- a=[3,5,1,2,7,5,2]
print(list(findminmax(a)))
print(getevenlist(a))
print(reverse(a))
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