• [deleted]
    + 11 comments

    This was my code, could anyone please help with what's the problem here?

    def countApplesAndOranges(s, t, a, b, apples, oranges):
        apls = list(apples)
        orls = list(oranges)
        avf = []
        ovf = []
        for v in apls:
            if (a+v)>=s:
                avf.append(v)
        for g in orls:
            if (b+g)<=t:
                ovf.append(g)
        print len(avf)
        print len(ovf)