import streamlit as st def display_cards(title, average, highest, lowest): # Create a container for the layout with st.container(): st.subheader(title) # Create columns for the layout col1, col2, col3 = st.columns(3) # Create cards with Streamlit's built-in components with col1: st.markdown( f"""

Average

{average:.2f}

""", unsafe_allow_html=True, ) with col2: st.markdown( f"""

Highest

{highest:.2f}

""", unsafe_allow_html=True, ) with col3: st.markdown( f"""

Lowest

{lowest:.2f}

""", unsafe_allow_html=True, ) # Add CSS styles with animations st.markdown( """ """, unsafe_allow_html=True, )