You are on page 1of 6

(/)

Hello World: Create your First Python Program


In the last tutorial, we completed our Python
installation and setup. It's time to create your
first program.

Creating First Program


Step 1) Open PyCharm Editor. You can see the
introductory screen for PyCharm. To create a
new project, click on “Create New Project”.

(/images/Pythonnew/Python3.1.png)

Step 2) You will need to select a location.

1. 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
something more meaningful, like “FirstProject”.
2. PyCharm should have found the Python interpreter you installed earlier.
3. Next Click the “Create” Button.
(/images/Pythonnew/PythonS3.2.png)

What is Linux Linux


What is Linux Linux Beginner Tutorial Beginner Tutorial
NOW
PLAYING

How to write a TEST


CASE Software Testing
Tutorial

What is JVM (Java


Virtual Machine) with
Architecture JAVA
Programming Tutorial

Step 3) Now Go up to the “File” menu and select “New”. Next, select “Python File”.

(/images/Pythonnew/PythonS3.3.png)

Step 4) A new pop up will appear. Now type the name of the file you want (Here we give
“HelloWorld”) and hit “OK”.
(/images/Pythonnew/PythonS3.4.png)

Step 5) Now type a simple program - print (‘Hello World!’).

(/images/Pythonnew/PythonS3.5.png)

Step 6) Now Go up to the “Run” menu and select “Run” to run your program.

(/images/Pythonnew/PythonS3.6.png)

Step 7) You can see the output of your program at the bottom of the screen.

(/images/Pythonnew/Python3.5.png)

Step 8) Don't worry if you don't have Pycharm Editor installed, you can still run the code
from the command prompt. Enter the correct path of a file in command prompt to run the
program.
(/images/Pythonnew/Python3.6.png)

The output of the code would be

(/images/Pythonnew/Python3.7.png)

Step 9) If you are still not able to run the program, we have Python Editor for you.

Please run the given code at Python Online Editor (https://www.guru99.com/execute-


python-online.html)

print("Hello World")

 Prev (/how-to-install-python.html) Report a Bug


Next  (/print-python-examples.html)

YOU MIGHT LIKE:

PYTHON PYTHON PYTHON


(/python-vs-c-plus- (/python-dictionary- (/python-string-
plus.html) append.html) count.html)
(/python-vs-c-plus- (/python- (/python-string-
plus.html) dictionary-append.html) count.html)
Python vs C++: What's the Python Dictionary Append: Python String count() with
Di erence? How to Add Key/Value Pair EXAMPLES
(/python-vs-c-plus- (/python-dictionary- (/python-string-count.html)
plus.html) append.html)

PYTHON PYTHON PYTHON

(/python-list- (/import-module- (/python-howto-remove-


comprehension-sort- python.html) duplicates.html)
examples.html) (/import-module- (/python-howto-
(/python-list- python.html) remove-duplicates.html)
comprehension-sort- Import module in Python Python remove Duplicates
examples.html) with Examples from a List
Python List: (/import-module- (/python-howto-remove-
Comprehension, Apend, python.html) duplicates.html)
Sort, Length, Reverse
EXAMPLES
(/python-list-
comprehension-sort-
examples.html)

Python Tutorials
Python Tuple (/python-tuples-tutorial-comparing-deleting-slicing-keys-unpacking.html)

Python Dictionary (/python-dictionary-beginners-tutorial.html)

Python First Program (/creating-your-first-python-program.html)

Python Dictionary Append (/python-dictionary-append.html)

How to Print in Python (/print-python-examples.html)

 (https://www.facebook.com/guru99com/)
 (https://twitter.com/guru99com) 
(https://www.linkedin.com/company/guru99/)

(https://www.youtube.com/channel/UC19i1XD6k88KqHlET8atqFQ)

(https://forms.aweber.com/form/46/724807646.htm)

About
About Us (/about-us.html)
Advertise with Us (/advertise-us.html)
Write For Us (/become-an-instructor.html)
Contact Us (/contact-us.html)

Career Suggestion
SAP Career Suggestion Tool (/best-sap-module.html)
Software Testing as a Career (/software-testing-career-
complete-guide.html)

Interesting
eBook (/ebook-pdf.html)
Blog (/blog/)
Quiz (/tests.html)
SAP eBook (/sap-ebook-pdf.html)

Execute online
Execute Java Online (/try-java-editor.html)
Execute Javascript (/execute-javascript-online.html)
Execute HTML (/execute-html-online.html)
Execute Python (/execute-python-online.html)

© Copyright - Guru99 2021


        Privacy Policy (/privacy-policy.html)  |  Affiliate
Disclaimer (/affiliate-earning-disclaimer.html)  |  ToS
(/terms-of-service.html)

You might also like