This Python script enables users to convert temperatures between Celsius and Fahrenheit. It offers a user-friendly interface with clear prompts and formatted results. Users can choose to continue converting or exit the program.
- Converts temperature between Celsius and Fahrenheit.
- Provides formatted results for enhanced readability.
- Allows users to continue converting or exit the program.
- Clear prompts guide users through the conversion process.
- Run the script.
- Enter a temperature value.
- Choose the conversion type:
- Type 1 for Celsius to Fahrenheit.
- Type 2 for Fahrenheit to Celsius.
- View the converted temperature.
- Choose to continue converting or exit the program:
- Type 3 to continue.
- Type 4 to exit.
- Python 3.x
- Operating system supporting the
os
module (e.g., Windows, Unix-based systems)
- For Windows, the script clears the screen using
os.system('cls')
. Modify for other operating systems ('clear'
for Unix-based systems). - Ensure valid input to prevent errors.
- This script no work in Linux.
[Maicon Souza/maick87]