Solution not accepted - extract values from column - Python

https://app.dataquest.io/m/315/functions%3A-fundamentals/6/extract-values-from-any-column

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.

hi @ankitrhll9

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

6 Likes

Thank you so much! I ran into the same problem, and did not notice the indentation!

1 Like

hey @mauricio.salan

thanks for checking on existing post and not creating a new one for the same/ similar issue. :slight_smile:

Same problem! Very helpful! Thank you.

1 Like

Thank you so much! I had the same problem.

1 Like