A simple Python command-line application that converts temperatures between Celsius, Fahrenheit, and Kelvin.
- Celsius ➜ Fahrenheit
- Celsius ➜ Kelvin
- Fahrenheit ➜ Celsius
- Fahrenheit ➜ Kelvin
- Kelvin ➜ Celsius
- Kelvin ➜ Fahrenheit
- User-friendly menu-driven interface
- Supports decimal temperature values
- Python
- Visual Studio Code
- Jupyter Notebook (Optional)
Temperature-Calculator/
│
├── temperature.py # Main Python program
├── program.ipynb # Jupyter Notebook version
├── README.md # Project documentation
git clone https://github.com/uday7219/Temperature-Calculator.gitcd Temperature-Calculatorpython temperature.py=======================================================
🌡️ TEMPERATURE CALCULATOR 🌡️
=======================================================
1. Celsius ➜ Fahrenheit
2. Celsius ➜ Kelvin
3. Fahrenheit ➜ Celsius
4. Fahrenheit ➜ Kelvin
5. Kelvin ➜ Celsius
6. Kelvin ➜ Fahrenheit
7. Exit
=======================================================
Enter your choice: 1
Enter Temperature: 25
Result: 77.00 °F
-
Celsius → Fahrenheit
°F = (°C × 9/5) + 32 -
Celsius → Kelvin
K = °C + 273.15 -
Fahrenheit → Celsius
°C = (°F − 32) × 5/9 -
Fahrenheit → Kelvin
K = (°F − 32) × 5/9 + 273.15 -
Kelvin → Celsius
°C = K − 273.15 -
Kelvin → Fahrenheit
°F = (K − 273.15) × 9/5 + 32
This project demonstrates the use of:
- Python Functions
- Conditional Statements (
if-elif-else) - Loops (
while) - User Input
- Formatted Output using f-strings
Uday Sharma
GitHub: https://github.com/your-uday7219