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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here