Overwriting output froma print statement

Welcome to the Streamlit community! Please see the below example