02 Chapter Two - Hello Python
02 Chapter Two - Hello Python
CHAPTER TWO
Hello Python
Objectives
What is Python?
Why we study Python?
What are the key features of Python?
What are applications of Python?
How to install jupyter notebook?
What is Python?
Python is simple, general purpose, dynamic, object oriented, interpreted as well as compiled, high-
level programming language.
In details Python is
Python Versions
PS. Python 3 won’t provide backward compatibility to Python2 i.e. there is no guarantee that
Python2 programs will run in Python3.
Features of Python
Simple - Python syntax is very easy. Developing and understanding python is very easy than
others. The below comparison illustrated how simple python language is when compared to
other languages.
# include <stdio.h>
int main()
{
printf("Hello World")
return 0
}
print("Hello World")
Open Source - We can download freely and customize the code as well
Platform independent - Python programs are not dependent on any specific operating
systems. We can run on all operating systems happily.
Portable - If a program gives the same result on any platform then it is a portable program.
Python used to give the same result on any platform.
Huge library - Python has a big library to fulfil the requirements.
Database connectivity - Python provides interfaces to connect with all major databases like,
oracle, MySQL.
keyboard_arrow_down Lesson Two : Applications of Python
Python is a programming language that does it all, from web applications to video-games, Data
Science, Machine Learning, real-time applications to embedded applications, and so much more. In
this lesson, we’ll take a deeper dive into a broader list of applications of Python out in the wild.
1. Web Development
I hope you are familiar with what web development is. Python is used to develop fully functional
website using web development frameworks like Flask and Django. Using Python for web
development also offers several other benefits, such as security, easy scalability, and convenience in
the development process.
2. Game Development
Just like web development, Python comes equipped with an arsenal of tools and libraries for 2D, 3D
and video game development like PyGame.
Artificial Intelligence(AI) and Machine Learning are undoubtedly among the hottest topics of this
decade. These are the brains behind the smart tech that we so rely on today to help us make
optimized decisions. Python has seen a steep increase in their use for developing AI and ML-
powered solutions like YouTube video recommendations. We have TensorFlow, PyTorch, Pandas,
Scikit-Learn, NumPy, SciPy, and more libraries.
5. Image Processing
Due to the ever-increasing use of Machine Learning, the role of image (pre)processing tools has also
skyrocketed. To fulfill this demand, Python offers a host of libraries that are useful for multiple
applications like face recognition & image detection. Some of the popular image processing Python
libraries include OpenCV and Python Imaging Library(PIL).
6. Text Processing
Text Processing is among the most common uses of Python. Text Processing allows you to handle
enormous volumes of text while giving you the flexibility to structure it as you wish. Do you ever
think how facebook detects hate speech posts and comments? Well, that has done with Python’s text
processing capabilities.
7. Audio and Video Applications
When it comes to working with audio and video files, python is fully equipped with tools and
libraries to accomplish your task. Tasks such as basic signal processing, creative audio manipulation,
audio recognition, and more can be easily handled by libraries like Pyo, pyAudioAnalysis, Dejavu,
and many other libraries like it.
As for the video part, Python offers several libraries, such as Scikit-video, OpenCV, and SciPy, that
can help you manipulate and prepare videos for use in other applications. Popular audio & video
streaming applications like Spotify, Netflix, and YouTube are written in Python.
The internet is home to an enormous amount of information ready to be utilized. What Web Scrapers
essentially do is they crawl the websites they’re directed towards and store all the collected
information from their web pages in one place. From there onwards, this data could be used by
researchers, analysts, individuals, organizations for a broad range of tasks. A few examples of the
tools behind the Web Scrapers are PythonRequest, BeautifulSoup and Selenium.
The Python ecosystem offers several libraries that can help you tackle your Data Science problems
head-on. We have Matplotlib and Seaborn as the most widely used data visualization tools.
AI, ML, and Data Science projects still require intensive computations in the form of linear algebra,
high-level mathematical functions, and similar, Python is well equipped for them too. Python helped
scientists and researchers conclude countless number-crunching problems and uncover new
findings. FreeCAD and Abaqus are some realworld examples of numerical and scientific
applications built with Python.
Conclusion
Python is an extremely robust and versatile programming language that is rapidly gaining popularity
among developers from various sectors. Its ability to be deployed into virtually any domain is
remarkable, thanks to its vast ecosystem of diverse libraries.
keyboard_arrow_down Lesson Three : Python Installation
Python IDEs are software applications that provide tools and features to facilitate coding in Python.
They offer features like code writing, execution, debugging, making the development process more
efficient.
Jupyter Notebook
Jupyter Notebook is an open source web application that you can use to create and share live code. It
is a popular IDE for data science and machine learning tasks.
print("Hello World")
1 print("Hello World")
Hello World
Key Takeaways
Python is a high-level programming language known for its simplicity and readability.
We study Python because it is widely used, has a large community support, and offers
numerous applications in various domains.
Python was created by Guido van Rossum, and it was first released in 1991.
Key features of Python include its easy-to-learn syntax, open source, extensive standard
library, portable and platform independent.
Python has a wide range of applications, including web & App development, data analysis,
machine learning, scientific computing, automation, and scripting, among others.
Jupyter Notebook is a popular IDE for data science and machine learning tasks.