Unable to print function returning text output

Hi, I am unable to print my output on streamlit site. The function returning output is being displayed in my terminal but when trying to print thought streamlit its displaying none.


Capture