Project Overview 💡
In this real-world project, you’ll build a Flask web application that converts distances between kilometers and miles. Users will input an amount, select the type of conversion, and get instant results displayed on the webpage. The app combines the power of Flask with HTML and Bootstrap for a user-friendly interface.
Challenge Yourself! 🚀
Before jumping into the guide, try to build a web app that takes user input, performs a simple conversion based on selection, and shows the result on the same page.
Task:
Create a web application that:
Uses Flask for routing and form handling
Lets users convert distances from kilometers to miles and vice versa
Shows the result dynamically using an HTML template
Expected Output:
In the above interface, the user can:
Select which type of conversion to make.
Type in a number.
Press the “Convert” button to get the results.
Give it a shot! Scroll down when you're ready for the step-by-step guide.