BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

First Python Project in PyCharm IDE

Last Updated: March 14, 2019 by Chaitanya Singh | Filed Under: Python Tutorial

In the last tutorial we have seen how to install PyCharm (a popular IDE for Python). In this guide, we will see how to create your First Python project in PyCharm.

Creating Python Project in PyCharm

1. Click “Create New Project” in the PyCharm welcome screen.
Create New Project PyCharm Welcome Screen

2. Give a meaningful project name.
Python Project Name PyCharm

Writing and running your first Python Program

1. Now that we have created a Python project, it’s time to create a Python program file to write and run our first Python program. To create a file, right click on the folder name > New > Python File (as shown in the screenshot). Give the file name as “HelloWorld” and click ok.
First Python File in Project

2. Write the following code in the file.

# This Python program prints Hello World on screen
print('Hello World')

Hello World Python Program PyCharm

3. Lets run the code. Right click on the HelloWorld.py file (or the name you have given while creating Python file) in the left sidebar and click on ‘Run HelloWorld’.
Run the first python program

4. You can see the output of the program at the bottom of the screen.
Output of the First program in PyCharm

❮ PreviousNext ❯

Top Related Articles:

  1. Python Recursion
  2. How to Install Python
  3. Python Constructors – default and parameterized
  4. Python Keywords and Identifiers with examples
  5. Python Data Types

About the Author

I have 15 years of experience in the IT industry, working with renowned multinational corporations. Additionally, I have dedicated over a decade to teaching, allowing me to refine my skills in delivering information in a simple and easily understandable manner.

– Chaitanya

Comments

  1. HARDIK says

    January 21, 2020 at 6:15 AM

    very nice site for learning python.

    Reply
  2. sayyad salman says

    January 27, 2020 at 5:09 AM

    Thank you very much sir. It helped a lot!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Python Tutorial

Introduction

  • Python Tutorial
  • Python Introduction
  • Install Python
  • PyCharm IDE Installation
  • Python in PyCharm
  • Python Comments
  • Python Variables
  • Python Keywords & Identifiers
  • Python data types

Flow Control

  • Python If
  • Python if..else
  • Python if..elif..else
  • Python Nested If
  • Python for loop
  • Python while loop
  • Python break
  • Python continue
  • Python pass

Python Functions

  • Python Functions
  • Python Recursion

Python Datatypes

  • Python Numbers
  • Python List
  • Python Strings
  • Python Tuple
  • Python Dictionary
  • Python Set

Python OOPs

  • Python OOP
  • Python Class & Object
  • Python Constructors

Python Examples

  • Python Programs

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap