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

Python and PyCharm Setup Tutorial

This tutorial provides instructions for setting up Python and PyCharm IDE on Windows. It outlines downloading and installing Python, downloading and installing PyCharm, creating a Python project in PyCharm, creating and running a Python program. Key steps include downloading the latest Python version from python.org, downloading and installing the free PyCharm Community edition, creating a new PyCharm project, adding a Python file, and running the program to view output in the console pane.

Uploaded by

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

Python and PyCharm Setup Tutorial

This tutorial provides instructions for setting up Python and PyCharm IDE on Windows. It outlines downloading and installing Python, downloading and installing PyCharm, creating a Python project in PyCharm, creating and running a Python program. Key steps include downloading the latest Python version from python.org, downloading and installing the free PyCharm Community edition, creating a new PyCharm project, adding a Python file, and running the program to view output in the console pane.

Uploaded by

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

Python and PyCharm Setup Tutorial

This tutorial is for students who want to develop Python projects using PyCharm. it covers the
following topics:
 Download and install Python
 Download and install PyCharm
 Launch PyCharm
 Create a Python Project
 Create a Python program
 Compile and Run a Python Program

PyCharm is one of the most widely used integrated development environments (IDE) for
Python.

1. Download and Install Python

Most operating systems other than Windows already have Python installed by default.

Python on Windows

To install Python on Windows, go to https://www.python.org/downloads/, download Python


3.8.x. Run the Python installer and accept all the defaults. This will install Python in the root
directory and set up some file associations.

2. Download and Install PyCharm

PyCharm is the most popular IDE used for Python, and includes great features such as
excellent code completion and inspection with advanced debugger and support for web
programming and various frameworks.

Note: to use PyCharm for Python programming, you need to first install Python.

How to install PyCharm


Step 1: Go to: https://www.jetbrains.com/pycharm/download/#section=windows. You will
observe two versions of packages for Windows as shown in the screenshot given below.
Download the community package, it includes all the basic features needed for this course,
it is for free.

1/4
Step 2: Download the community package (executable file) onto your system and mention a
destination folder.

Step 3: Begin the installation procedure similar to any other software package.

3. Developing Python Programs using PyCharm

Before creating Python programs in PyCharm, you need to first create a project. When
you launch PyCharm for the first time, you can see a welcome screen with entry points to
IDE:

a) Click Create New Project, as shown below

b) Create a Python project named MyPythonProject, then click Create.

2/4
c) Create a Python file. Choose File, New, Python File.

d) From the option Python file popup, and then type the new filename.

Type a file name here

e) PyCharm creates a new Python file and opens it for editing.

Edit pane

3/4
f) Editing source code

g) Compiling and Running your application


You can right-click the Python file and from the context menu choose to run script,
choose Run Python file as shown below.

h) The output is displayed in the console pane as shown below.

Edit pane

Output pane

4/4

You might also like