Hello, in this video we are going to look at setting up pi fine. So you can programming the programming language Python on a Linux machine. These steps are the same whether you're on Ubuntu, or whether you are on Kali or some other my next distro. So what you want to do is open up terminal. And Python is usually already bundled with the line mix distros. And the way you can find out is by putting Python free theme in its version three, put dash dash version of the n equals two for example.
So the latest version I have is 3.5. Point two. So you can also update Python using like using this command sudo abt dash get up day and then afterward for your username. Okay, so now you just do sudo A p two, dash P is still quite far, and then the version number like 3.5. For example, I've already got a new version, so I won't be doing that for the download extra follow up and deal with that later. Okay, and that's it.
So to actually run the application, all you have to do so first of all, let me actually create a simple Python file. So I'm going to put in print. Hello, world. Save it. I'm gonna save it on the desktop. Save it PYP y is the Python extension for file.
As you can see, it's appeared right there. So to run it, there's a couple of different ways you need to use the Python command. And then you could drag it like so that works or you could change directory to wherever you fall located, and then just leave Python in this file name, like so. The both methods are valid. This has been a quick video on how to set up use and run Python files on a Linux distribution. If you have any questions, feel free to reach out.
And as usual, thanks for watching, and I look forward to seeing you in my next video.