Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.13 KB

File metadata and controls

53 lines (35 loc) · 1.13 KB

🌡️ Temperature Converter (Python)

📋 Project Description

This is a simple Python program that converts temperature between Celsius and Fahrenheit. It allows the user to choose the conversion type and then displays the result with proper formatting.


🧠 Concepts Used

  • Conditional statements (if, elif, else)
  • Basic arithmetic operations
  • User input using input()
  • Type conversion (float, int)
  • String formatting (f-strings)

⚙️ How to Run

  1. Save the file as temperature_converter.py

  2. Open your terminal or command prompt

  3. Navigate to the folder where your file is saved

  4. Run the program using:

    python temperature_converter.py

🧾 Sample Output

Temperature Converter
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
Enter your choice (1 or 2): 1
Enter temperature in Celsius: 37
37.0°C = 98.60°F

🌟 Future Improvements

  • Add a GUI interface using tkinter
  • Support for Kelvin conversion
  • Include input validation and error handling