This is a code of my function, I had to breakdown the main function into subfunctions. When I tested the main function it worked but not when I tried to print the output of subfunction. I tried to alter my for loop but it didn't work.
When I tried to print just the subfunction get_relative_levels(), it just won't print anything, I am not sure if it's the problem in my for loop in this subfunction or did something wrong in my main function main()
Any suggestions are appreciated!