Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago