Python Temperature Converter Project

Step-by-step instructions

This project will guide you to create a **temperature converter** using Python. Follow each step carefully to complete it successfully.

Hint: Use formulas for Celsius ↔ Fahrenheit conversions and loops for multiple conversions!

Step 1: Display Menu

Instructions:

  • Print a menu showing the conversion options:
  • 1. Celsius to Fahrenheit
    2. Fahrenheit to Celsius
                        
  • Prompt the user to choose an option (1 or 2).

Step 2: Get User Input

Instructions:

  • Ask the user to enter the temperature value to convert.
  • Store the value in a variable and convert it to float to handle decimals.

Step 3: Perform Conversion

Instructions:

  • Use if-else statements to determine which conversion to perform.
  • Formulas:
    • Celsius to Fahrenheit: F = C * 9/5 + 32
    • Fahrenheit to Celsius: C = (F - 32) * 5/9

Step 4: Display Result

Instructions:

  • Print the result in a readable format. Example: "25°C is 77°F" or "77°F is 25°C".

Step 5: Repeat or Exit

Instructions:

  • Ask the user if they want to perform another conversion.
  • If yes, repeat from Step 1; if no, exit the program with a goodbye message.

Tips for Students

Keep practicing and your temperature converter will be fully functional! 🌡️