I am displaying a number "1" with streamlit. I would like to REPLACE this "1" with a "2" if I click "Perform calculation 2", and with a "3" if I click "Perform calculation 3". It kind of works but I do not want to display both a the same time, I would like to replace the "1" with either "2" or "3" depending on the button I click.
import streamlit as st
st.write("1")
runButton = st.button("Perform calculation 2")
if runButton:
st.write("2")
runButton2 = st.button("Perform calculation 3")
if runButton2:
st.write("3")

