File size: 780 Bytes
596e9a5
 
1a4e1bf
 
 
596e9a5
1a4e1bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
596e9a5
1a4e1bf
 
596e9a5
1a4e1bf
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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])