I want to take multiple inputs in a for loop

All you need is to use a dictionary. Below is my little workaround.

import streamlit as st

name_dict = {"Anord":"", "Bernald":""}

for k, v in name_dict.items():
    name_dict[k] = st.text_input(k, v)
    st.write(name_dict[k])

You can change the values of a dict item to a list or something else.