I feel confident with my code here but dont know why it still count me wrong???
Do you have a link to the lesson or challenge? It’s not really clear what problem you are trying to solve. Your function seems a little odd though, what is parameter
Hello @byte0803169799, welcome to the forums! Considering the fact that functions should be able to be used for any valid inputs, does your function work if
item = 5, and
n = 9?