Programming Homework Help

CSUN Simple Python Input and Output Function Odds Program

 

I’m working on a python multi-part question and need a sample draft to help me learn.

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.