Learn vibe coding - the revolutionary approach to creating applications by describing what you want in natural language and letting AI handle the code.
import streamlit as st
import requests
from datetime import datetime
# Set page configuration
st.set_page_config(
page_title="Weather App",
page_icon="🌤️",
layout="centered"
)
# App title
st.title("Weather Dashboard 🌤️")
# Input for city name
city = st.text_input("Enter City Name:", "New York")
# API key and URL
api_key = "YOUR_API_KEY" # Replace with your OpenWeatherMap API key
weather_url = f"https://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}&units=metric"
forecast_url = f"https://api.openweathermap.org/data/2.5/forecast?q={city}&appid={api_key}&units=metric"
if st.button("Get Weather"):
try:
# Get current weather data
response = requests.get(weather_url)
data = response.json()
# Display current weather
st.subheader(f"Current Weather in {city}")
col1, col2 = st.columns(2)
with col1:
temp = data['main']['temp']
st.metric("Temperature", f"{temp} °C")
humidity = data['main']['humidity']
st.metric("Humidity", f"{humidity}%")
with col2:
weather_desc = data['weather'][0]['description'].capitalize()
st.write(f"**Condition:** {weather_desc}")
wind_speed = data['wind']['speed']
st.metric("Wind Speed", f"{wind_speed} m/s")
# Get forecast data
forecast_response = requests.get(forecast_url)
forecast_data = forecast_response.json()
# Display 5-day forecast
st.subheader("5-Day Forecast")
forecast_items = forecast_data['list'][::8] # Get data every 24 hours
cols = st.columns(len(forecast_items))
for i, item in enumerate(forecast_items):
date = datetime.fromtimestamp(item['dt']).strftime("%a, %b %d")
temp = item['main']['temp']
weather = item['weather'][0]['main']
with cols[i]:
st.write(f"**{date}**")
st.write(f"{weather}")
st.write(f"{temp} °C")
except Exception as e:
st.error(f"Error: {e}")
st.error("Please check the city name and try again.")
Build software without learning complex programming languages or syntax. Simply describe what you want in natural language and let AI handle the technical details.
Create applications in a fraction of the time it would take with traditional coding. Vibe coding accelerates development by generating code based on your descriptions.
Concentrate on what you want to build rather than how to build it. Vibe coding lets you focus on your creative vision while AI handles the technical implementation.
Test your understanding of vibe coding concepts with this interactive quiz. Select the best answer for each question.
Marketing Specialist
"I never thought I could build my own web app without learning to code. Vibe coding with AI has completely changed what's possible for me. I created a custom marketing analytics dashboard in just a few hours!"
Teacher
"As an educator with no technical background, I was able to create educational tools for my students using vibe coding. The course made it easy to understand how to effectively communicate with AI to get the results I wanted."
Experienced Developer
"Even as someone who's been coding for years, vibe coding has dramatically increased my productivity. For prototyping and quick projects, it's a game-changer. This course provides excellent guidance on when and how to use these techniques effectively."
Join our comprehensive course and learn to build software with AI - no coding experience required!