# Can i create a rating system by adding stars into each records using streamlit?

**URL:** <https://discuss.streamlit.io/t/can-i-create-a-rating-system-by-adding-stars-into-each-records-using-streamlit/15693>\
**Category:** Using Streamlit\
**Created:** [August 3, 2021, 8:06am UTC](https://discuss.streamlit.io/t/can-i-create-a-rating-system-by-adding-stars-into-each-records-using-streamlit/15693 "2021-08-03T08:06:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Marisa\_Smith](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/marisa_smith/32/11154_2.png) [@Marisa\_Smith](https://discuss.streamlit.io/u/Marisa_Smith)\
**Post date:** [August 3, 2021, 5:20pm UTC](https://discuss.streamlit.io/t/can-i-create-a-rating-system-by-adding-stars-into-each-records-using-streamlit/15693/2 "2021-08-03T17:20:48Z")

</div>

Hey @leb_dev,

I saw that this got answered on your other post, so I am copying that over here for any users that may come to your question in the future! (kudos to @BeyondMyself for this answer)

> [@How to create columns dynamically](https://discuss.streamlit.io/t/how-to-create-columns-dynamically/15703/6):
>
> I find another solution, it is very easy. x = st.slider('choose a number',1,5) col1, col2, col3=st.beta\_columns([2,0.2,2]) with col1: st.empty() with col2: if x==1: st.markdown("star") if x==2: st.markdown("starstar") if x==3: st.markdown("starstarstar") if x==4: st.markdown("starstarstarstar") if x==5: st.markdown("starstarstarstarstar") with col3: st.empty()

_Happy Streamlit-ing!  
Marisa_

---

_[View the full topic](https://discuss.streamlit.io/t/can-i-create-a-rating-system-by-adding-stars-into-each-records-using-streamlit/15693)._
