Why Learn Python? – SitePoint

Why learn Python? Well, because it’s friendly and everywhere and here and there and popular and powerful and learnable and engaging and fun. Why? No learn python?

Maybe I should open it up a bit. Let’s look at some of the top reasons why you should learn Python.

is python friendly

Python is a general purpose programming language. You can do almost anything with it (and we’ll go into how detailed everything soon). But most importantly, the Python world is a friendly place for anyone looking to learn a little.

If you’ve done any programming in the past, you may have come across “pseudocode”: something that looks like a programming language but really isn’t, because its goal is to show you what the program does. Wikipedia articles describing how to do something often put that description into a fake programming language… and fake programming languages ​​often look a lot like Python!

Consider explaining to someone how to load the dishwasher: Delicates don’t go in it; Make sure you have enough salt; Load it up and launch it. In code terms, it might look like this:

if dishwasher.salt < FULL:
    dishwasher.salt.fill()
for item in crockery:
    if item.dirty:
        if not item.delicate:
            dishwasher.add(item)
dishwasher.turn_on()

This is programming code, but hopefully it’s relatively readable and understandable even if you’ve never seen any Python code. and are not braces no more (i++; i>5) hieroglyphs.

This is greatly helped by the friendliness that Python extends to the Python community as a whole. in stackoverflow a Lively community of people asking and answering Python questions And it’s a good place to get help.

The Python language itself is founded on a set of principles called “zen of python”, which has guiding thoughts such as “simple is better than complex” and “readability matters”.

Those who think programming should be a test accuse it of being made for (and by) people who say “dar” instead of swearing, and who turn off the water while brushing their teeth. Give, as you will — but the last thing you need is to measure up to someone else’s idea of ​​righteousness when you’re trying to get the job done. So they can push well.

python is everywhere

Python is used, and is popular, in almost every field of technology. Machine learning is the latest hot thing, and almost all the code you write to work with AI models is written in Python. PyTorch The leading machine learning framework.

If you’re interested in working with image models or other available setups, Google’s the collab There are thousands of existing models and code examples, all built with Python, and running in the cloud. It is good for building web apps and web sites django And flaskand building software for the cloud by building lambda functions and other serverless setups.

dataset is a tool for journalists and researchers that helps them share data in a way that is useful without the need to be a programmer themselves, and it’s written in Python.

A vast majority of data processing and data science software is in Python, including NumPy, skippyAnd matplotlib libraries.

Almost anything related to math and statistics will have a lot of Python in it. pyqt And Kiwi Lets you build apps for desktop and phones.

Python is great for working with tools, electronics, and machines. All software written to run amazing made here Creations on YouTube is written in Python.

And Python is great for “glue code” – short scripts to solve particular problems, or to do something on your machine; Not big projects, but little things that help you solve a problem – like starting a backup, or figuring out which words fit into today’s Wordle puzzle, or putting your photos in an album Split to fit. Python is everywhere.

python is here

Another good reason to learn Python is that it is right here, wherever you are.

If you’re on macOS or Linux, you already have Python. open a terminal and type python3 And there it is.

If you’re on Windows, it’s in the Microsoft Store: See Microsoft’s own instructions on how to install Python Either from the store or by way of web development.

on an iPhone, there is pythonista And Pitoand is on Android QPython And termux,

And to experiment with Python, you don’t need to install anything, to understand how it works. pyodide people made A full version of Python that runs in a web browser without requiring any installation, and Jupiter Also lets you try out Python in your browser.

python is popular

Another good reason to learn Python is that it is popular. TIOBE Index Chart programming language popularity by month. Python is always at or near the top (and, at the time of writing, Aug 2022, it Is at the top), and TIOBE itself says, “It is hard to find an area of ​​programming in which Python is not used extensively nowadays.”

Similarly, the 2022 Stack Overflow Developer Survey Python tied for “Most Wanted” programming language, ahead of JavaScript, Go and platform-specific languages ​​such as Kotlin and Swift.

GitHub’s “Status of Octoverse” summary Python is the second most popular language among all GitHub repositories. One reason for this is that Python is available on all platforms; Part is because it is useful in almost every field; And part is because it’s fairly easy to understand.

It’s often a useful approach to go with the flow – to use a tool that lots of other people use. That way, you have a vibrant community to help you when you run into problems, and often the problem you may have is something someone else has already solved for you.

python is powerful

Because of its ubiquitousness and popularity, there is a lot you can do with Python. Almost no problem is beyond Python. Some very low-level or very performance-critical tasks are better off in a more complex language, but this is much rarer than you might think.

In particular, even if you plan to build something in a lower-level language later, it’s often good to prototype in Python … and then work through the most performance-critical paths to speed up. Is.

Part of Python’s ubiquity is that it can be adapted to all kinds of tasks, and because of this, Python comes with lots of modules to solve problems as part of its “standard library”. Comes bundled with – suite of code that is available to every Python programmer out of the box.

python standard library There are many built-in modules to handle the things you want to do – such as running a web server, processing data, handling dates, times and time zones, managing files, performing cryptographic operations, managing networking, HTML handling, building applications, and talking to the operating system.

Besides, the python package index There are over a third of a million packages to deal with almost any conceivable problem. That’s a lot of power at your fingertips.

python is worth learning

Because Python is popular and interesting, there are also a lot of resources to help you learn Python.

Of course, SitePoint has its own programming tutorials, lots of which are dedicated to Python, as well as all-supportive community forums.

freecodecamp There are free coding bootcamps dedicated to learning Python, with dozens of exercises to help you start with the basics and then move on to web programming and databases or scientific computing, and learn python are equal.

The Python website itself also gives some guidelines getting started with python,

There are many places to learn Python.

python is attractive

Of course, learning and knowledge are their own reward. but on the off chance that you are not A creature of pure energy that has been uploaded to the internet and has some bills to pay instead, a career writing Python can be well paid.

At the time of writing, in August 2022, Fact.com’s average base salary for a Python programmer in the USA is $115,965,

And there are many more jobs available. Part of the joy of Python being so versatile and usable in so many different areas of technology is that there are always positions available for people with Python skills. It’s good to be paid. Python helps.

python is fun

where else can you say import antigravity,

XKCD #353, “Python”

Image above is from XKCD https://xkcd.com/353/, But if you can’t remember its URL, just open your Python prompt and type import antigravity, Really! try it now!

So, are you ready to get started?

So why learn Python? Why? No learn python? It’s friendly and everywhere and here and popular and powerful and learnable and engaging and fun. Now you’re ready to get started, here are some suggestions on where to look first!

See if you learn best by being taught freecodecamp python bootcamp, If you’re more interested in watching videos, the Intro to Python course is good for that, and YouTube is a place to watch tutorials and learning both good and bad.

If you want to build web projects with Python, How to quickly start a Django project and a Django app are a good place to start, and then web development with Django will go a long way.

If you want to get started with data science and statistics, check out the book Data Science: An Introduction And then the rest of the series. These both go a long way in expanding the tools and skills and practical approach.

If you want to develop your programming skills in multiple areas, I recommend this series of books: python apprenticeAnd its sequel, and the sequel after that, that really gets into some of the details.

And if you learn best by doing… then do that. Pick a small project, a problem you want to solve, and use Python to solve it. Don’t worry about creating something for someone else to see; Let’s skip the user interface for now.

Pick a simple, real problem and solve it. Maybe it’s something that helps you solve a morning crossword by finding all the words matching “-th-n”, or a little tool that lists all your photos that were taken in 2017, or Something that tracks the calories you’ve eaten today.

Check out some of the tutorials above on how to get started, and Python’s own documentation For a full description of everything that comes with Python out of the box: How to ask for input, or manipulate numbers and strings, read a file, or handle dates. Find answers and read Stack Overflow.

It’s a great way for people who learn by doing to get their fingers into Python. It’s forgiving of mistakes, and helpful to newbies. Good luck to you

Leave a Reply