logically the solution on this link is no different from what I submissted but then also your system is telling that my solution isn’t correct. A snap the solution I submitted in attached, kindly check.
please check the indentation of the return statement. It is inside the for loop. thereby only the last result in the loop is being returned. and hence the answer is not accepted
Thank you so much! I ran into the same problem, and did not notice the indentation!
thanks for checking on existing post and not creating a new one for the same/ similar issue.
Same problem! Very helpful! Thank you.
Thank you so much! I had the same problem.