How to create columns dynamically based on user input from a slider ?
where the user select the value from the then the system iterate over the range of the value and create columns equal to it.
I tried to write the code but it did not work as it should where stars must be in Horizontal layout instead of Vertical
import streamlit as st x = st.slider('Evaluate the record',1,5) for i in range(x): cols = st.beta_columns(x) cols[i] = st.markdown(":star:")
where is the error in my code ?