Skip to content

Sbiswas001/Basic-python-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌡️ Temperature Converter (Python)

📋 Project Description

This is a simple Python program that converts temperature between Celsius and Fahrenheit. It allows the user to choose the conversion type and then displays the result with proper formatting.


🧠 Concepts Used

  • Conditional statements (if, elif, else)
  • Basic arithmetic operations
  • User input using input()
  • Type conversion (float, int)
  • String formatting (f-strings)

⚙️ How to Run

  1. Save the file as temperature_converter.py

  2. Open your terminal or command prompt

  3. Navigate to the folder where your file is saved

  4. Run the program using:

    python temperature_converter.py

🧾 Sample Output

Temperature Converter
1. Celsius to Fahrenheit
2. Fahrenheit to Celsius
Enter your choice (1 or 2): 1
Enter temperature in Celsius: 37
37.0°C = 98.60°F

🌟 Future Improvements

  • Add a GUI interface using tkinter
  • Support for Kelvin conversion
  • Include input validation and error handling

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 19

Languages