From 272374e2c66636269c3a412ef9676e42ec1f3e68 Mon Sep 17 00:00:00 2001 From: Surreal <35167042+surreal30@users.noreply.github.com> Date: Sun, 23 Oct 2022 18:12:44 +0530 Subject: [PATCH 1/3] Create python-and-library.md A short blog on how python is helpful with the its library, along with one such example. --- python/python-and-library.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 python/python-and-library.md diff --git a/python/python-and-library.md b/python/python-and-library.md new file mode 100644 index 0000000..305ce21 --- /dev/null +++ b/python/python-and-library.md @@ -0,0 +1,25 @@ +--- +id: blog-entry-id +title: Python and Libraries +tags: Python, NumpPy +date: 2022-10-23 +keywords: NumPy +categories: Python +author: Vaibhav +meta-description: NumPy useful for doing things like reverse array quickly +--- + +# Python and Libraries + +Python along with so many libraries is a powerful language. These libraries not only help in doing complex and specific tasks but also trivial tasks which would have taken multiple lines of code. + +One such library is numpy. This library offers a lot of mathematical functions to solve complex mathematical problems. But not only that, it also helps in doing simple tasks like reversing an array easily. + +```py +import numpy +num = input() +numlist = list(num) +numlistr = numpy.flipud(numlist) +``` + +The above code will reserve the array numlist. \ No newline at end of file From c174bebca752a8336f434af82ac557402b5d6dcb Mon Sep 17 00:00:00 2001 From: Surreal <35167042+surreal30@users.noreply.github.com> Date: Mon, 24 Oct 2022 18:22:45 +0530 Subject: [PATCH 2/3] Create 038-python-and-libraries.md Updated the file. And changed the name of the file according to the proper nomenclature. --- python/038-python-and-library.md | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python/038-python-and-library.md diff --git a/python/038-python-and-library.md b/python/038-python-and-library.md new file mode 100644 index 0000000..0e16be2 --- /dev/null +++ b/python/038-python-and-library.md @@ -0,0 +1,34 @@ +--- +id: 38 +title: Python and Libraries +tags: Python, NumpPy +date: 2022-10-23 +keywords: NumPy +categories: Python +author: Vaibhav +meta-description: NumPy useful for doing things like reverse array quickly +--- + +# Python and Libraries + +Python along with so many libraries is a powerful language. These libraries not only help in doing complex and specific tasks but also trivial tasks which would have taken multiple lines of code. + +One such library is numpy. This library offers a lot of mathematical functions to solve complex mathematical problems. But not only that, it also helps in doing simple tasks like reversing an array easily. + +```py +import numpy +num = input() +numlist = list(num) +numlistr = numpy.flipud(numlist) +``` + +The above code will reverse the array numlist. + +As you can see the task which would have taken multiple lines of code just to reverse an array is done simply with one line of code. +Then there are libraries like: +1. Tkinter: This library is used to make GUI programs in Python. +2. Matplotlib: This library is used to plot numerical data. +3. Pandas: This is one of the most popular and used library for data scientist in Python. +4. Pytorch: This library is used for machine learning programs in Python. + +There are so many more libraries. There is an library just to let you use emoji. \ No newline at end of file From 77a91eb6fe96f5705c144e72e3aa751ce09d4454 Mon Sep 17 00:00:00 2001 From: Surreal <35167042+surreal30@users.noreply.github.com> Date: Mon, 24 Oct 2022 18:24:30 +0530 Subject: [PATCH 3/3] Delete python-and-library.md --- python/python-and-library.md | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 python/python-and-library.md diff --git a/python/python-and-library.md b/python/python-and-library.md deleted file mode 100644 index 305ce21..0000000 --- a/python/python-and-library.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -id: blog-entry-id -title: Python and Libraries -tags: Python, NumpPy -date: 2022-10-23 -keywords: NumPy -categories: Python -author: Vaibhav -meta-description: NumPy useful for doing things like reverse array quickly ---- - -# Python and Libraries - -Python along with so many libraries is a powerful language. These libraries not only help in doing complex and specific tasks but also trivial tasks which would have taken multiple lines of code. - -One such library is numpy. This library offers a lot of mathematical functions to solve complex mathematical problems. But not only that, it also helps in doing simple tasks like reversing an array easily. - -```py -import numpy -num = input() -numlist = list(num) -numlistr = numpy.flipud(numlist) -``` - -The above code will reserve the array numlist. \ No newline at end of file