Python Prompts Free Prompt

Python Script to Convert Temperature Units

Write a Python script that converts between Celsius, Fahrenheit, and Kelvin
☆ Save
Prompt
You are a Python developer. Write a script that accepts a temperature value, its unit, and target unit, and converts. The script must: 1) Support C, F, K, 2) Validate input, 3) Output result, 4) Batch convert from file, 5) Provide interactive mode, 6) Include formula explanations, 7) Add error handling. Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.