In this tutorial, we are going to create our first Python program and we are going to able to run it and see how everything works.
The first thing I want to do is open up Pycharm. So Pycharm was the IDE (Integrated Development Environment) that we download in the last tutorial. So you can change the appearance by click Configure then choose Preferences.
So click Create new project. And it give us New project window. So you can just name your project. And click Create. And this is going to go ahead and create new project. Click to your project's name that you create at the left side and select New -> Python File. The a small window appear. Just name your Python File.
This is just going to be a hello world programs. So we are just gonna print something out into the screen. So just write
print("Hello World")
So this is like a very basic Python program. It's just going to print out Hello World onto the screen. Then click to Run tab and choose Run. I will ask you what you want to run. Just click your python file name. And at the bottom, you will notice that we have this text that just got printed out Hello World.
Comments
Post a Comment