Python
CSE 1224: Lab 3 - Due Tuesday, September 27 by 11:59 pm
1) Write a function called neg_mul_5li that takes a list of integers li as an argument and returns a new list that contains the negative multiples of 5 in li. Your function should use a for-loop.
For example, if
li = [-10, 2, -5, -8, 16, 10, -2, -15]
The function should return
[-10, -5, -15]
Hint: Start with
result = []
2) Solve the problem from question 1 using a while-loop