From f6cc0519ca4a887b43583ad9fca33cea2dca8d0e Mon Sep 17 00:00:00 2001 From: anusuya-2006 Date: Thu, 30 Oct 2025 14:49:03 +0530 Subject: [PATCH 1/5] Create python --- python | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 python diff --git a/python b/python new file mode 100644 index 00000000..1f327382 --- /dev/null +++ b/python @@ -0,0 +1,16 @@ +def square(num): + result = num * num + return result + + +def cube(num): + result = num **3 + return result + + +print("FUNCTIONS") +num = int(input("Enter a nunmer:")) +square = square(num) +cube = cube(num) +print('Square:',square) +print('Cube:',cube) From 1a3bd1a6d9939865d5a9f7dff9fdfa86fa9ec854 Mon Sep 17 00:00:00 2001 From: anusuya-2006 Date: Fri, 31 Oct 2025 10:40:48 +0530 Subject: [PATCH 2/5] Create python --- python3/python | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 python3/python diff --git a/python3/python b/python3/python new file mode 100644 index 00000000..888a684f --- /dev/null +++ b/python3/python @@ -0,0 +1,16 @@ +DECLARE +a NUMBER := 0; +b NUMBER : = 1; +temp NUMBER; +n NUMBER := 10; +I NUMBER; +BEGIN +DBMS_OUTPUT.PUT_LINE(‘Fibonacci series:’); +DBMS_OUTPUT.PUT_LINE(a); +DBMS_OUTPUT.PUT_LINE(b); +FOR i IN 2..n LOOP +temp := a + b; +a := b; +b:= temp; +DBMS_OUTPUT.PUT_LINE(temp); +END LOOP From 69103aac700f4bdb6ed6783bbd4ef2724f483262 Mon Sep 17 00:00:00 2001 From: anusuya-2006 Date: Fri, 31 Oct 2025 15:35:48 +0530 Subject: [PATCH 3/5] Create Python coding --- Even or Add/Python coding | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Even or Add/Python coding diff --git a/Even or Add/Python coding b/Even or Add/Python coding new file mode 100644 index 00000000..8aded76f --- /dev/null +++ b/Even or Add/Python coding @@ -0,0 +1,5 @@ +num = int(input("Enter a number: ")) +if num % 2 == 0: + print(num, "is an Even number") +else: + print(num, "is an Odd number") From 89c892a947672a2ea9dbb6437a6b6c5f5aca4d8f Mon Sep 17 00:00:00 2001 From: anusuya-2006 Date: Fri, 31 Oct 2025 16:25:06 +0530 Subject: [PATCH 4/5] Create python largest number --- largest number/python | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 largest number/python diff --git a/largest number/python b/largest number/python new file mode 100644 index 00000000..6e6ed8c0 --- /dev/null +++ b/largest number/python @@ -0,0 +1,6 @@ +numbers = [12, 45, 23, 67, 89, 34] +largest = numbers[0] +for num in numbers: + if num > largest: + largest = num +print("The largest number in the list is:", largest) From 9cafeac2f6fa2877ddf671e7d9f53d45cd98a05f Mon Sep 17 00:00:00 2001 From: anusuya-2006 Date: Fri, 31 Oct 2025 16:30:06 +0530 Subject: [PATCH 5/5] Create python coding 3 --- largest number/python coding 3 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 largest number/python coding 3 diff --git a/largest number/python coding 3 b/largest number/python coding 3 new file mode 100644 index 00000000..6e6ed8c0 --- /dev/null +++ b/largest number/python coding 3 @@ -0,0 +1,6 @@ +numbers = [12, 45, 23, 67, 89, 34] +largest = numbers[0] +for num in numbers: + if num > largest: + largest = num +print("The largest number in the list is:", largest)