I am trying to create a new function that will retrieve dates and claims for a desired year. I am stuck on the last bit of code. I need to use a return command at the end. I am thinking I need to append my list, but not sure.
def getClaimsByYear(dates, claims, desiredYear):
claimsInYear = []
for i in range(len(dates)):
dates = dates(i)
claim = claims(i)
parts = date.split("/")
year = int(parts[2])