Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 18906

How do I debug the issues in my code so that my subfunction can also print?

$
0
0

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.

Entire function

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()

testing outcomes

Any suggestions are appreciated!


Viewing all articles
Browse latest Browse all 18906


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>