Issue with Modifying Text using st.text_input and st.button

I saw another answer in another thread saying that we can’t ‘force’ the value in any input widget do update itself. So, the question stays the same, how to handle the text_input update in a range loop?