HELLO WORLD! Create first python program
In our previous tutorials we have seen the installation and setup of of Pycharm and IDLE
Saying Hello World! to Python
Now we will run our first program and see how to print hello world in python.
Step 1) Open your PyCharm Editor and click on "Create New Project"
Step 2) You will need to select a location.
Step 3) Now go to "File" menu. Select "New".Then select "Python File"
Step 4) A pop-up will appear ,write the name of your Python File and hit enter.
Step 5) Now type a simple program
print("Hello World")
You can use " " as well as ' ' .In python they both have same meaning
Step 6) Click the right mouse button.You will see a run option as seen in above image.Click the run option
Step 7) A terminal will be opened and "Hello World " will be printed as shown in the image
Congrats! We have successfully ran our first program. In our next blogs we will try other programs
Step 1) Open your PyCharm Editor and click on "Create New Project"
Step 2) You will need to select a location.
- You can select the location where you want the project to be created. If you don’t want to change location than keep it as it is but at least change the name from “untitled” to some other name .
- PyCharm should have found the Python interpreter you installed earlier.
- Next Click the “Create” Button
Step 3) Now go to "File" menu. Select "New".Then select "Python File"
Step 4) A pop-up will appear ,write the name of your Python File and hit enter.
Step 5) Now type a simple program
print("Hello World")
You can use " " as well as ' ' .In python they both have same meaning
Step 6) Click the right mouse button.You will see a run option as seen in above image.Click the run option
Step 7) A terminal will be opened and "Hello World " will be printed as shown in the image
Comments
Post a Comment
Please do not enter any spam link in the comment box