A product price guide and checkout selector
To upload files, please first save the app
import streamlit as st
import pandas as pd
st.title("Product Price Guide and Checkout Selector")
products = {
'Product A': 10.00,
'Product B': 15.50,
'Product C': 5.00,
'Product D': 20.00,
}
# Display product prices
st.write("### Product Prices")
product_prices = pd.DataFrame(list(products.items()), columns=["Product", "Price ($)"])
st.table(product_prices)
# Select products for checkout
st.write("### Checkout Selection")
selected_products = st.multiselect("Select products to checkout:", options=products.keys())
if selected_products:
total_cost = sum(products[product] for product in selected_products)
st.write("### Selected Products")
st.write(selected_products)
st.write("### Total Cost: $", total_cost)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?