Skip to content

Interactive Temperature Converter with Celsius, Fahrenheit, and Kelvin#224

Open
MohdFuzailHaider wants to merge 2 commits intoitsmedeepak:mainfrom
MohdFuzailHaider:temperature-convertor-update
Open

Interactive Temperature Converter with Celsius, Fahrenheit, and Kelvin#224
MohdFuzailHaider wants to merge 2 commits intoitsmedeepak:mainfrom
MohdFuzailHaider:temperature-convertor-update

Conversation

@MohdFuzailHaider
Copy link
Copy Markdown
Contributor

Summary

This PR enhances the original temperature converter by adding an interactive multi-scale conversion tool.

Changes Made

  • Added options to convert Celsius, Fahrenheit, and Kelvin in both directions.
  • Added looping, so users can convert multiple times without restarting the program.
  • Added exit option to quit the program gracefully.
  • Rounded conversion results to 2 decimal places.
  • Improved user interface and messages for better clarity.

Example Run


--- Temperature Converter ---
Choose a scale to convert from:

  1. Celsius
  2. Fahrenheit
  3. Kelvin
  4. Exit
    Enter 1, 2, 3 or 4: 1
    Enter temperature: 25
  5. Convert to Fahrenheit
  6. Convert to Kelvin
    Enter 1 or 2: 1
    25°C = 77.0°F
    Press Enter to continue...

@itsmedeepak
Copy link
Copy Markdown
Owner

@MohdFuzailHaider

Good progress 👍 — multi-scale conversion + loop works well.
For next upgrade, please:

  1. Refactor into functions (cleaner, testable code).
  2. Add requirements.txt and proper README.md.
  3. Make project production-ready (clear structure, docs).
  4. Start a Tkinter GUI version with dropdowns, input field, and result display.

@MohdFuzailHaider
Copy link
Copy Markdown
Contributor Author

Thanks a lot for the review and kind feedback 🙌
I’ll work on refactoring the code into functions, adding requirements.txt and a README.md for better documentation.
The idea of making it production-ready and starting a Tkinter GUI version sounds great — I’ll begin implementing those improvements and push the updates soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants