Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create python-and-library.md #237

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions python/038-python-and-library.md
Original file line number Diff line number Diff line change
@@ -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.