Starting to Learn Python, Introduction, Command Window, Program Flow

#Day 1

Today, I have started my #100DaysofCode and #100DaysofPython challenge. I am very excited to learn Python because it aligns greatly with my academic and professional career plans. I am aiming to share my journey on my blog and my Twitter.

I am beginning to learn with Coursera "Programming for Everybody (Getting Started with Python)" by the University of Michigan. I have looked at many courses but the teaching of Professor Charles Russell Severance is very elaborate and engaging. I started learning by grasping the subject of Generic Computers such as Main Memory, Control Processing Unit, and Secondary Memory. I had a basic introduction to the Python language. After that, I have installed Python on my computer.

%[python.org/]

It is very important to try to get familiar with the command window. Some commands are incredibly helpful for the beginning. For example;

To see which folder you are at: cd , I or

To see folders and files: dir

You can run a quick code like this, to make sure you have installed Python:

>>>x=1

>>>print(x)

1

>>>x=x+1

>>>print(x)

2

>>>exit()

Most programs are written in Python are very long, so we put them into a file and tell Python to run commands in the file. It is also should be noted that these files contain ".py" suffix on the end of them to indicate they contain Python.

I have written my first and very "classic" line of code which is "Hello World" with the print command.

hello world.jpg

Program Flow

It should be noted that a program is like a recipe that is a sequence of steps to be done in order. Some steps are conditional which means some steps may be skipped and some steps are to be repeated.

WhatsApp Image 2022-03-07 at 20.47.37.jpeg

WhatsApp Image 2022-03-07 at 20.49.11.jpeg