From 4f963de76337825fe3eec10063287c49d376b8f9 Mon Sep 17 00:00:00 2001 From: paul-baishali18 Date: Tue, 4 Nov 2025 01:23:07 +0530 Subject: [PATCH 1/5] Temperature converter --- baishali_issue_21.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 baishali_issue_21.py diff --git a/baishali_issue_21.py b/baishali_issue_21.py new file mode 100644 index 0000000..3ca46cb --- /dev/null +++ b/baishali_issue_21.py @@ -0,0 +1,13 @@ +# temperature converter issue 21 +unit=input("Is this temperature in Celsius or Fahrenheit? (C/F): ") +temp= float(input("Enter the temperature you want to convert: ")) +if unit=="C": + converted_temp= (temp * 9/5) + 32 + print(f"{temp} degree Celsius is equal to {converted_temp} degree Fahrenheit.") + +elif unit=="F": + converted_temp= (temp - 32) * 5/9 + print(f"{temp} degree Fahrenheit is equal to {converted_temp} degree Celsius.") +else: + print("Invalid unit. Please enter 'C' for Celsius or 'F' for Fahrenheit.") + \ No newline at end of file From dc1f8003d31facd1a8c7d6981646bb8db1b825b9 Mon Sep 17 00:00:00 2001 From: paul-baishali18 Date: Tue, 4 Nov 2025 01:45:40 +0530 Subject: [PATCH 2/5] Temperature converter --- Todo_List | 1 + 1 file changed, 1 insertion(+) create mode 160000 Todo_List diff --git a/Todo_List b/Todo_List new file mode 160000 index 0000000..65a4118 --- /dev/null +++ b/Todo_List @@ -0,0 +1 @@ +Subproject commit 65a4118897e9586de797facd20489fae1ddd1b47 From ca2ef1cd52ec093dd436123685f1b604494f1401 Mon Sep 17 00:00:00 2001 From: paul-baishali18 Date: Tue, 4 Nov 2025 03:00:10 +0530 Subject: [PATCH 3/5] Leap Year --- baishali_issue_19.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 baishali_issue_19.py diff --git a/baishali_issue_19.py b/baishali_issue_19.py new file mode 100644 index 0000000..2bbec93 --- /dev/null +++ b/baishali_issue_19.py @@ -0,0 +1,6 @@ +# program to check leap year +year = int(input("Enter a year: ")) +if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): + print(f"{year} is a leap year.") +else: + print(f"{year} is not a leap year.") From 24434b4ad591220cc91e758db9ea2b0fe9ccbdca Mon Sep 17 00:00:00 2001 From: paul-baishali18 Date: Tue, 4 Nov 2025 03:45:16 +0530 Subject: [PATCH 4/5] Add baishali_issue_9.py --- baishali_issue_9.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 baishali_issue_9.py diff --git a/baishali_issue_9.py b/baishali_issue_9.py new file mode 100644 index 0000000..93c366e --- /dev/null +++ b/baishali_issue_9.py @@ -0,0 +1,23 @@ +# program to swap two numbers +#using temporary variable +a=int(input("Enter first number: ")) +b=int(input("Enter second number: ")) +print(f"Before swapping: a ={a}, b ={b}") +temp=a +a=b +b=temp +print(f"After swapping: a ={a}, b ={b}") +#without using temporary variable +a=int(input("Enter first number: ")) +b=int(input("Enter second number: ")) +print(f"Before swapping: a ={a}, b ={b}") +a=a+b +b=a-b +a=a-b +print(f"After swapping: a ={a}, b ={b}") +#using python's special feature +a=int(input("Enter first number: ")) +b=int(input("Enter second number: ")) +print(f"Before swapping: a ={a}, b ={b}") +a,b=b,a +print(f"After swapping: a ={a}, b ={b}") \ No newline at end of file From e77a608188da3b2fcf83f8559ed79ae725cf81c7 Mon Sep 17 00:00:00 2001 From: paul-baishali18 Date: Tue, 4 Nov 2025 03:58:43 +0530 Subject: [PATCH 5/5] Move files from nested Todo_List directory to main directory --- Todo_List | 1 - baishali_issue_6.css | 0 baishali_issue_6.html | 0 3 files changed, 1 deletion(-) delete mode 160000 Todo_List create mode 100644 baishali_issue_6.css create mode 100644 baishali_issue_6.html diff --git a/Todo_List b/Todo_List deleted file mode 160000 index 65a4118..0000000 --- a/Todo_List +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 65a4118897e9586de797facd20489fae1ddd1b47 diff --git a/baishali_issue_6.css b/baishali_issue_6.css new file mode 100644 index 0000000..e69de29 diff --git a/baishali_issue_6.html b/baishali_issue_6.html new file mode 100644 index 0000000..e69de29