Home

What is Python and What Can You Do with It

|
|  Updated:  
2016-03-26 7:15:31
Python Essentials For Dummies
Explore Book
Buy On Amazon

Python is a programming language written by a person called Guido van Rossum in the 1990s. Programming languages allow you to control what a computer does and the way it does it.

Some of the things that make Python totes awesome (also known as "really helpful and lots of fun") are:

  • Python code is easy to read and understand. Its beauty means you don't even notice the way Python makes complex things simple. This makes Python easy to learn, which makes it perfect for kids.

  • Python is productive. It makes tough tasks simple. Almost any programming task is easier with Python than it is with other programming languages. Computer types call this RAD (for Rapid Application Development).

  • Python is dangerous. It has a lot of power. But with great power comes great responsibility. (Remember Spider-Man?) And you'll have to use your powers for good, not evil. (If you want to use them for evil, you have to stop reading now.)

  • Python is a scripting language. The programs are fed into Python's interpreter, which runs them directly, so there's no compiling (which is the case for some other languages). It is faster and easier to get feedback on your Python code (finding errors, for example). Python means you complete and execute (run) your programs faster and that makes programming fun!

  • Python is cross platform. Almost anyone can use it, no matter what computer operating system they have. You can run pretty much any Python program on Windows, Mac, and Linux personal computers and from large servers through to tiny computers like the Raspberry Pi. You can even run Python programs on Android and iOS tablets.

  • Python uses dynamic typing for its variables. This may not mean much to you if you've never done programming before. Dynamically typed variables make programming easier because they let you just start using a variable, rather than first explaining to the computer what the variable is supposed to be.

  • Python gets lots of help from third-party modules. This means that a lot of other people (third parties) have written libraries. A library is a bunch of code for doing something specific. This makes your work easier because you don't have to start from scratch every time you write a new program; sometimes you can use the libraries already written.

  • Python is free software. This means that the license terms for Python respect your freedom. You can download and run Python without paying any money, and any program that you write with it is yours to use and share any way you want. It also means that the Python source code (the human-readable form of what the computer runs) is available so, when you're feeling brave enough, you can look at how the Python developers wrote their code. (It's written in a different programming language, though, d'oh!)

The Python programming language is named after a comedy group called Monty Python, not the reptile. Monty Python was active mainly in the 1970s. (40 years ago! Forever and ever, right?) They had a British television show called Monty Python's Flying Circus and have made lots of movies, the most notable of which is Monty Python and the Holy Grail.

Who uses Python

Python is used just about everywhere. Just take a look at the following list (which is not exhaustive). The point is that Python will apply to whatever you're interested in, no matter what it is.

  • In space: The International Space Station's Robonaut 2 robot uses Python for its central command system. Python is planned for use in a European mission to Mars in 2020 to collect soil samples.

  • In particle physics laboratories: Python helps understand the data analysis from some atom smashing experiments at the CERN Large Hadron Collider.

  • In astronomy: The MeerKat Radio telescope array (the largest radio telescope in the Southern Hemisphere) uses Python for its control and monitoring systems.

  • In movie studios: Industrial Light and Magic (Star Wars geniuses) uses Python to automate its movie production processes. Side Effects Software's computer-generated imagery program Houdini uses Python for its programming interface and to script the engine.

  • In games: Activision uses Python for building games, testing, and analyzing stuff. They even use Python to find people cheating by boosting each other.

  • In the music industry: Spotify music streaming service uses Python to send you music.

  • In the video industry: Netflix uses Python to make sure movies play (stream) without stopping. Python is used a lot for YouTube.

  • In Internet search: Google used Python all over in its early development phase.

  • In medicine: The Nodality company uses Python to handle information that they use to search for a cure to cancer.

  • In your OS (admin-ing your datas): Operating systems like Linux and Mac OSX use Python for some of their administrative functions.

  • In your doorbell: Rupa Dachere and Akkana Peck say that you can automate your home with Python, hooking up sensors to your house. With it you can, for example, open and close the curtains or automatically turn on lights when you come in the room.

What to do with Python

With Python, you can learn to make such things as a math trainer for practicing your times tables or a simple encryption (a secret code) program. And when you've honed your skills over time, there are other things you'll be able to do, such as:

  • Using Tkinter (or other widget sets), you can write user applications that use graphics rather than just text to interact with the user.

  • You can extend other programs like Blender (a 3D modeling program), GIMP (a 2D photo-retouching program), and LibreOffice (office programs), among many others by writing custom scripts.

  • You can write games with graphics using Tkinter or the Pygame or Kivy libraries. The games in this book are text only.

  • You can use the matplotlib library to draw complex graphs for your math or science courses.

  • Using the openCV library, you can experiment with computer vision. People who are into robotics use it to help their robots see and grab things and to avoid obstacles when moving.

Whatever you want it to do, there's a good chance someone has already written code to do it or to help you do it yourself.

About This Article

This article is from the book: 

About the book author:

Brendan Scott is a dad who loves Python and wants kids to get some of its magic too. He started pythonforkids.brendanscott.com to help teach his oldest child to code. He maintains it to help other young people learn Python.