Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| # Title and Description | |
| st.title("Weather by Month") | |
| st.write("This app shows the typical weather you might experience in each month.") | |
| # Data for weather | |
| weather_data = { | |
| "January": "Cold and Snowy", | |
| "February": "Cold and Rainy", | |
| "March": "Cool and Windy", | |
| "April": "Rainy and Mild", | |
| "May": "Warm and Pleasant", | |
| "June": "Hot and Sunny", | |
| "July": "Hot and Humid", | |
| "August": "Hot and Dry", | |
| "September": "Warm and Breezy", | |
| "October": "Cool and Clear", | |
| "November": "Cold and Foggy", | |
| "December": "Cold and Snowy", | |
| } | |
| # Select month | |
| selected_month = st.selectbox("Select a month:", list(weather_data.keys())) | |
| # Display weather | |
| st.subheader(f"Weather in {selected_month}:") | |
| st.write(weather_data[selected_month]) | |