Issues with do_print() method?

In reply to mseyunni:

Don’t understand what could be wrong here since we can’t run this code, and you didn’t show us what you saw versus what you were expecting. See How to create a Minimal, Reproducible Example - Help Center - Stack Overflow and How do I ask a good question? - Help Center - Stack Overflow