Skip to content

Commit 2dbe283

Browse files
authored
Add files via upload
1 parent 1884186 commit 2dbe283

8 files changed

Lines changed: 456 additions & 0 deletions

File tree

Import_libraries.ipynb

Lines changed: 416 additions & 0 deletions
Large diffs are not rendered by default.

__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# __init__.py
2+
# Key points of __init__.py:
3+
# 1. Package Initialization: The __init__.py file is executed when the package is imported, allowing for package-level initialization.
4+
# 2. Namespace Definition: It defines the package namespace, making it possible to organize modules within the package.
5+
# 3. Module Imports: It can be used to import specific modules or functions, making them accessible directly from the package.
6+
# 4. Package Metadata: It can include metadata about the package, such as version information.
7+
# 5. Subpackage Inclusion: It can include subpackages, allowing for a hierarchical package structure
8+

destination.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sample content

example.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Name,Age,City
2+
Alice,30,New York
3+
Bob,25,Los Angeles

math.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
def addition(a, b):
2+
return a + b
3+
4+
def subtraction(a, b):
5+
return a - b
6+
7+
def multiplication(a, b):
8+
return a * b
9+
10+
def division(a, b):
11+
if b != 0:
12+
return a / b
13+
else:
14+
return "Division by zero error"
15+

source.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Hello How are you?
2+
Regards
3+
Subham

source.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sample content

test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from package.math import *
2+
from package.subpackages.mul import multiply
3+
4+
5+
6+
print(addition(10,5))
7+
print(subtraction(10,5))
8+
print(multiply(10,5))
9+
print(division(10,5))

0 commit comments

Comments
 (0)