Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
15 views

Python Basics1

Create your First Python Program

Uploaded by

Sridhar M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Python Basics1

Create your First Python Program

Uploaded by

Sridhar M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

12/13/24, 11:28 PM Hello World: Create your First Python Program

Hello World: Create your First Python Program


By : Logan Young Updated August 12, 2024

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”.

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.

https://www.guru99.com/creating-your-first-python-program.html 1/6
12/13/24, 11:28 PM Hello World: Create your First Python Program

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

RELATED ARTICLES
→ Python ZIP file with Example
→ PHP Vs. Python: Key Difference Between Them
→ Yield in Python Tutorial: Generator & Yield vs Return Example
→ How to Check Python Version on Linux, Mac & Windows

https://www.guru99.com/creating-your-first-python-program.html 2/6
12/13/24, 11:28 PM Hello World: Create your First Python Program

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

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

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

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

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
https://www.guru99.com/creating-your-first-python-program.html 3/6
12/13/24, 11:28 PM Hello World: Create your First Python Program

prompt to run the program.

The output of the code would be

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

This code is editable. Click Run to Execute

1 print("Hello World")
2

Run

https://www.guru99.com/creating-your-first-python-program.html 4/6
12/13/24, 11:28 PM Hello World: Create your First Python Program

You Might Like:

Top
Top Python PyQt5 Tutorial
Tutorial
Interview with Examples:
Examples: Multithreading in
Questions and… Design…
Design… Python with…

15
15 BEST Python
Courses Online
Online
for…

Prev Report a Bug Next

Do you think
AI is future of
Work?
Yes No

https://www.guru99.com/creating-your-first-python-program.html 5/6
12/13/24, 11:28 PM Hello World: Create your First Python Program

About
About Us
Advertise with Us
Contact Us

Career Suggestion
SAP Career Suggestion Tool
Software Testing as a Career
Xero
RemotePC
QuickBooks

Interesting
eBook
Blog
Quiz
SAP eBook
Privacy Manager

English © Copyright - Guru99 2024 Privacy Policy |


Affiliate Disclaimer | ToS | Editorial Policy

https://www.guru99.com/creating-your-first-python-program.html 6/6

You might also like