I’m taking the challenges on this page but I got stuck on #4 (“More than N”). I would need your precious help to understand why this piece of code returns “none” instead of “True”.
def more_than_n(lst, item, n): lst =  item =  for i in item: if i in lst: i += 1 if i > n: return True else: return False #Uncomment the line below when your function is done print(more_than_n([2, 4, 6, 2, 3, 2, 1, 2], 2, 3))
Do you have any clues as to what I’m doing wrong? Is my approach completely wrong?
Thanks a lot, I really appreciate your help!