# -*- coding: utf-8 -*- """ Fancy Addition Calculator with Sidebar and Animations Created on Sat Jul 12 10:49:24 2025 @author: somil """ import streamlit as st import time # Page Config st.set_page_config(page_title="Addition Calculator", page_icon="➕", layout="centered") # Sidebar for input st.sidebar.header("Enter Numbers Here") number1 = st.sidebar.number_input("Enter Number 1", min_value=0, max_value=100, value=12) number2 = st.sidebar.number_input("Enter Number 2", min_value=0, max_value=100, value=12) # Main title and animation st.markdown("

✨ Basic Addition Calculator ✨

", unsafe_allow_html=True) st.markdown("

Let’s crunch some numbers ➕➕

", unsafe_allow_html=True) # Animation for effect with st.spinner("Calculating... 🧠"): time.sleep(1) # Simple delay for effect # Result result = number1 + number2 st.success(f"🎉 The sum of **{number1}** and **{number2}** is: **{result}**") # Footer message st.markdown("---") st.markdown("

🌟 Hope you have a nice day! 🌈

", unsafe_allow_html=True)