🚀 Summer Code Camp - 2026 Registration Now Open

**7 Easy Steps on how to learn to Code with Python**

7 Easy Steps on how to learn to Code with Python

We shall be using the PyCharm editor for our illustrations

  1. Open PyCham: The act of creating your first program: Open PyCharm editor, the introductory screen for Pycharm is visible. In order to create a new project, click on “Create new Project”.![][image69]
  2. Selecting a location: Choosing a location for the purpose of saving your file or folder is very important, you can also select the location where you want your project to be created. If you wish not to change your location, it is important you change the name to something good, for example changing the name from ‘Untitled’ to ‘Dickson Project’. If you downloaded the pycharm editor it would have been configured or seen by the PyCharm Afterwards, click on the ‘Create’ button
  3. Create a New File; Go towards the ‘FILE’ menu, select ‘NEW’, afterward select ‘Python File’

![][image70]

  1. Name your Project: following the instructions diligently as shown in step 2, a new pop up appears, type in the name of the file you wish to use; in this tutorial, we shall be using ‘Hello World” after writing this,click on the ‘OK’ button

![][image71]

  1. Write Code: Type a simple program, let’s say print (‘Hello World’)

![][image72]
Indentations: Indentations are used to highlight blocks of code, for indentation in Python, whitespace is used. It is worth noting that all statements to the right with the same distance belong to the same blocks of code.

  1. Run Code: Move towards the direction of the ‘run’ menu, select ‘Run’ for the purpose of running your program

![][image73]

  1. Code Output: The output of your program is shown/revealed at the bottom of the screen

![][image74]
Bravo!!!, you have successfully learned how to write your first line of code with Python. These 7 simple steps on how to learn to code with Python will help you get started;
if you do not have PyCharm, you can make use of any IDE or editor as well.
Looking to start your journey as a programmer join other kids at the Academy today.
Click the button below to start with a FREE online Coding session with an instructor to guide you.
FREE ONLINE SESSION

Focus keyphrase
7 EASY STEPS ON HOW TO LEARN TO CODE WITH PYTHON

Meta description
7 EASY STEPS ON HOW TO LEARN TO CODE WITH PYTHON - Write your first code in python following these 7 simples steps