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