Return stops using the whole function, therefore loop is immediately terminated. Try using the list and appending at the end, you can return this list.
If you are a beginner and want to know more about Data Science the do check out the Data Science course