I want to take multiple inputs in a for loop

Running all the way through is core to the way streamlit runs.

You might be able to achieve this by giving the inputs unique keys and adding a break in the loop if they aren’t all added but I’d suggest looking at how streamlit processes (from the top each time) and see if you can design a UI that fits that process more closely.