A unit converter with both CLI and Web interfaces supporting length, weight, and temperature conversions.
- Length Conversion: mm, cm, m, km, inch, ft, yard, mile
- Weight Conversion: mg, g, kg, ton, oz, lb
- Temperature Conversion: Celsius, Fahrenheit, Kelvin
Simply open index.html in your browser for a beautiful, interactive interface with:
- Tabbed navigation between conversion types
- Real-time conversion as you type
- Swap button to quickly reverse units
- Responsive design for mobile and desktop
Run the Python script:
python unit_converter.pyFollow the interactive menu to select conversion type and enter values.
index.html- Web interfacestyle.css- Styling with gradient designscript.js- Conversion logicunit_converter.py- CLI version