Welcome to the Temperature Converter page.
This page contains a brief description and implementation instructions for the project.
Project Description
Converts temperatures between Celsius and Fahrenheit. The user enters a temperature and the unit, and the program computes the equivalent in the other unit (C=(Fâ32)5/9 or F=C9/5+32).
Project Requirements
Python 3.x (no external libraries).
How to Run the Project
- Write a script (e.g.
temp_converter.py
) that prompts for a value and unit (C or F). - Run it:
python temp_converter.py
. Enter temperature (e.g.100 C
); it outputs the converted value (e.g. â212.0 Fâ).
Key Concepts Learned
- Basic arithmetic operations and order of operations.
- Taking user input and parsing (splitting unit and number).
- Control flow for choosing formula based on unit.
Possible Extensions
- Add Kelvin scale.
- Loop to allow multiple conversions.
- Validate input format.
- Create a GUI using a simple library (Tkinter).