From fd5f57ba5523675ba3155e467ccb02b550f9f4e5 Mon Sep 17 00:00:00 2001 From: Jeet-Ui03 Date: Tue, 28 Oct 2025 18:51:28 +0530 Subject: [PATCH 1/2] Add jeet_issue_21 --- jeet_issue_21.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 jeet_issue_21.py diff --git a/jeet_issue_21.py b/jeet_issue_21.py new file mode 100644 index 0000000..1a6e6c6 --- /dev/null +++ b/jeet_issue_21.py @@ -0,0 +1,46 @@ +# Temperature Converter + +def celsius_to_fahrenheit(c): + return (c * 9/5) + 32 + +def fahrenheit_to_celsius(f): + return (f - 32) * 5/9 + +def celsius_to_kelvin(c): + return c + 273.15 + +def kelvin_to_celsius(k): + return k - 273.15 + +def fahrenheit_to_kelvin(f): + return (f - 32) * 5/9 + 273.15 + +def kelvin_to_fahrenheit(k): + return (k - 273.15) * 9/5 + 32 + + +print("=== Temperature Converter ===") +print("1. Celsius to Fahrenheit") +print("2. Fahrenheit to Celsius") +print("3. Celsius to Kelvin") +print("4. Kelvin to Celsius") +print("5. Fahrenheit to Kelvin") +print("6. Kelvin to Fahrenheit") + +choice = int(input("\nEnter your choice (1-6): ")) +temp = float(input("Enter temperature value: ")) + +if choice == 1: + print(f"{temp}°C = {celsius_to_fahrenheit(temp):.2f}°F") +elif choice == 2: + print(f"{temp}°F = {fahrenheit_to_celsius(temp):.2f}°C") +elif choice == 3: + print(f"{temp}°C = {celsius_to_kelvin(temp):.2f} K") +elif choice == 4: + print(f"{temp} K = {kelvin_to_celsius(temp):.2f}°C") +elif choice == 5: + print(f"{temp}°F = {fahrenheit_to_kelvin(temp):.2f} K") +elif choice == 6: + print(f"{temp} K = {kelvin_to_fahrenheit(temp):.2f}°F") +else: + print("Invalid choice! Please select a number between 1 and 6.") From 7c0a0aef3322251f3a923fcf05fa51b41046cec7 Mon Sep 17 00:00:00 2001 From: Jeet-Ui03 Date: Wed, 5 Nov 2025 03:44:44 +0530 Subject: [PATCH 2/2] Add changes to Todo_List --- jeet.txt | 1 + jeet_issue_19.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 jeet_issue_19.py diff --git a/jeet.txt b/jeet.txt index e69de29..fcd6bcb 100644 --- a/jeet.txt +++ b/jeet.txt @@ -0,0 +1 @@ +jeet011@gmail.com \ No newline at end of file diff --git a/jeet_issue_19.py b/jeet_issue_19.py new file mode 100644 index 0000000..b22fa4f --- /dev/null +++ b/jeet_issue_19.py @@ -0,0 +1,9 @@ +# Leap Year Checker + +year = int(input("Enter a year: ")) + +# Leap year conditions +if (year % 400 == 0) or (year % 100 != 0 and year % 4 == 0): + print(f"{year} is a leap year.") +else: + print(f"{year} is not a leap year.")