Tech With Galvan

Project 2: BMI Calculator

15 min • Beginner • Module 3

Build a health calculator with metric/imperial switching and a visual scale.

Full walkthrough: read the companion article

Checkpoint: Toggling between unit systems swaps the inputs and the BMI recalculates correctly.

Key takeaways

  • • Conditional widgets per unit system
  • • Threshold ladders with if/elif
  • • st.metric and st.progress for instant polish