Why to learn Python 3 in 2022 ?
Are you in your first or second year of college and want to start programming? Or are you already a programmer and want to learn more? Python 3 is never too old to learn.
But before we start, let's talk about the basics of programming. If you are already familiar with programming, you can skip this section.
If you are interested in watching a video tutorial in Hindi, you can watch it here.
👋 What is programming?
We use computers and mobiles every day in our daily life. We use computers to do all these things, from playing games to watching movies. But have you ever wondered how the computer or mobile understands what you want it to do? This is done through the power of programming.
-
Let's understand what a program is
A program is a piece of code that gives the computer a specific task. For example, if you want to print a message on your screen, you can write a program.
Each software or application you use, for example,
Windows/Linux/macOS
,Google Chrome
,Google Seach Engine
,YouTube
,GTA5
,WhatsApp
, etc., are all called software. This software is made using a lot of small programs. -
What is a programming language?
The problem is that computer doesn't understand the language we humans use. It only understands the binary language. But as humans, it is complicated to give instructions in binary.
Remember how we communicate with other human beings? We use a language called English. But the computer doesn't understand English. So we use some programming languages, which are understood by us but not directly by computers. It gets converted from human language to computer language.
-
What are compiler and interpreter?
Compilers and interpreters are programs that convert human language to computer language. They differ in how they process the language.
The compiler takes the whole code in programming language and converts it into binary code. It is called compilation. Also, it checks for errors and optimizes them during the compilation step.
The interpreter works a bit differently. It takes the code and executes it line by line. It is called interpretation. Error checking and optimization are done only on the code currently being executed.
Why learn Python??
-
😎 Python is simple
Let's compare two pieces of code to print a message.
I hope you can understand the difference between the two. Python is so simple to learn and understand. You can do more with fewer lines of code.
-
😇 Python is a high-level language
There is no need to learn many things to understand how to use Python. You can learn the basics of programming very quickly.
-
👥 Open source language
Want to know how Python works? You can check out the source code and get your hands dirty, but don't do it right now as it will be really overwhelming for now.
But as you can see, because its source code is publicly available, developers worldwide help improve it and make it better.
The community of Python is enormous. You can find people who are learning Python, and they are very helpful. If you ever get stuck in a programming problem, you can ask them for help.
-
📑 Vast Libraries
Do you want to add some functionality to your program but don't want to write a lot of code? You can use some libraries written by other people. You don't have to reinvent the wheel.
Python uses a package manager called
pip
. You can install any library using the commandpip install <library name>
. -
📱💻 Cross-Platform Support
Python is a cross-platform language. It can be used on Windows, Linux, macOS, Android, iOS, Web, Desktop, etc. You don't need to write different code to run it on various platforms. (Some exceptions are there when you are using some operating system functionality)
What can you do with Python?
This list can go up to infinite, but I'll keep it short for now.
-
Web Development
Want to create powerful websites and web applications? You can use Python to create them. You can use
Django
orFlask
to create web applications. Some of the world's most popular websites are built using Django. -
Game Development 🎮
Python has a lot of libraries for game development. You can use
Pygame
to create games. If you have heard of the games likeBattlefield 2
orThe Sims 4
, these all are made using Python. -
Software Development
Python helps create beautiful software. Examples of some software made using Python are
BitTorrent
,Cinema 4D
,Dropbox
and much more. You can also use this language to create your own software. -
Machine Learning and Artificial Intelligence
Python has a lot of libraries for machine learning and artificial intelligence. The IT world is moving more and more towards the automation of computers, and Python can help you with that.
-
Image Processing
Ever used those fascinating Snapchat or Instagram filters? Python can use its image processing libraries to modify images and create any type of filter you want for yourself.
So if you reached here, I hope you have got the information you needed, and now you are ready to start your journey of learning Python. Thank you so much for taking the time to read this.
Thank you so much for taking the time to read this.