**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
- 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]
- 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
- Create a New File; Go towards the âFILEâ menu, select âNEWâ, afterward select âPython Fileâ
![][image70]
- 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]
- 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.
- Run Code: Move towards the direction of the ârunâ menu, select âRunâ for the purpose of running your program
![][image73]
- 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