You can only use Python to do the assignment. 1) Write a function write a function odds(l) that takes a list of ints and returns a list of the odd elements. 2) write a function double(l) that takes a...


You can only use Python to do the assignment.



1) Write a function write a function odds(l) that takes a list of ints and returns a list of the odd elements.



2) write a function double(l) that takes a list of ints and returns a new list with every number doubled. Your function should not modify l.



3) write a function max(l) that takes a list of ints and returns the largest value



4) Using list comprehension, write one line of Python code that takes a list of ints and creates a new list where every element is replaced by its string representation



You need upload your codes and at least 3 inputs and 3 outputs for testing all functions.


Your input must be more than 12 numbers or 12 letters.

Oct 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here