| import streamlit as st | |
| # App title | |
| st.title("🌡️ Temperature Converter App") | |
| # Functions for conversions | |
| def celsius_to_fahrenheit(celsius): | |
| return (celsius * 9/5) + 32 | |
| def celsius_to_kelvin(celsius): | |
| return celsius + 273.15 | |
| def fahrenheit_to_celsius(fahrenheit): | |
| return (fahrenheit - 32) * 5/9 | |
| def fahrenheit_to_kelvin(fahrenheit): | |
| return (fahrenheit - 32) * 5/9 + 273.15 | |
| def kelvin_to_celsius(kelvin): | |
| return kelvin - 273.15 | |
| def kelvin_to_fahrenheit(kelvin): | |
| return (kelvin - 273.15) * 9/5 + 32 | |
| # Sidebar for | |