From 2d995794a795eaf088ac5320d51140b69b9d25c6 Mon Sep 17 00:00:00 2001
From: avinashnaidu77777 <128221829+avinashnaidu77777@users.noreply.github.com>
Date: Sat, 18 Mar 2023 16:06:19 +0530
Subject: [PATCH 1/4] Update README.md
---
README.md | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/README.md b/README.md
index f8f48e9..003c7a6 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,26 @@
+## Q.What is Python?
+Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
+
+It is used for:
+
+web development (server-side),
+
+software development,
+
+mathematics,
+
+system scripting.
+
+## Q.What can Python do?
+Python can be used on a server to create web applications.
+Python can be used alongside software to create workflows.
+Python can connect to database systems. It can also read and modify files.
+Python can be used to handle big data and perform complex mathematics.
+Python can be used for rapid prototyping, or for production-ready software development.
+
## Q. How can you improve the following code?
```py
From 43a9fe54d83386dbe994a4d73663a4026efe1e0d Mon Sep 17 00:00:00 2001
From: Ashish Meshram <112160710+ashishmeshram844@users.noreply.github.com>
Date: Sat, 16 Mar 2024 17:56:21 +0530
Subject: [PATCH 2/4] Create transpose_of_matrix.py
---
programs/transpose_of_matrix.py | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 programs/transpose_of_matrix.py
diff --git a/programs/transpose_of_matrix.py b/programs/transpose_of_matrix.py
new file mode 100644
index 0000000..a4b4dfe
--- /dev/null
+++ b/programs/transpose_of_matrix.py
@@ -0,0 +1,22 @@
+class Matrix(object):
+ def __init__(self,mat = None):
+ self.mat = mat
+
+ def get_matrix(self) -> list:
+ return self.mat
+
+ def transpose(self) -> list:
+ if self.mat:
+ try:
+ return list(zip(*self.mat))
+ except Exception as e:
+ return f"Failed to convert transpose because {e}"
+mat = [
+ [1,2,3],
+ [4,5,6],
+ [7,8,9]
+ ]
+
+matrix_obj = Matrix(mat)
+print(f"Original Matrix is : \n {matrix_obj.get_matrix()}")
+print(f"Transpose of above matrix is : \n {matrix_obj.transpose()}")
From 5f33863fd42d979755d9c02a289bfd12a01c71a1 Mon Sep 17 00:00:00 2001
From: Ashish Meshram <112160710+ashishmeshram844@users.noreply.github.com>
Date: Fri, 22 Mar 2024 12:31:59 +0530
Subject: [PATCH 3/4] Create sort_dict_by_value.py
sort a given dictionary according to values
---
programs/sort_dict_by_value.py | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 programs/sort_dict_by_value.py
diff --git a/programs/sort_dict_by_value.py b/programs/sort_dict_by_value.py
new file mode 100644
index 0000000..481792e
--- /dev/null
+++ b/programs/sort_dict_by_value.py
@@ -0,0 +1,9 @@
+data = {
+ 'one':1,
+ 'two':2,
+ 'four':4,
+ 'three':3
+}
+
+sort_dict = {key:val for key,val in sorted(data.items(),key= lambda x : x[1]) }
+print(sort_dict)
From 204d23478f60a65bd4a898b14f905a663bbdaedf Mon Sep 17 00:00:00 2001
From: DodiBTW <115790541+DodiBTW@users.noreply.github.com>
Date: Fri, 27 Dec 2024 08:33:22 +0100
Subject: [PATCH 4/4] Removed random text
---
README.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/README.md b/README.md
index f9418e4..f1f7400 100644
--- a/README.md
+++ b/README.md
@@ -167,8 +167,6 @@ div2(5.,2.)
Also, how would the answer differ in Python 3 (assuming, of course, that the above [print] statements were converted to Python 3 syntax)?
-- kjalfkjaslf
-