Python Basics
Most Windows and Mac computers come with Python pre-installed. You can check that via Command Line search. The particular appeal of Python is that you can write a program in any text editor, save it in .py format and then run via a Command Line. But as you learn to write more complex code, especially data science, you have to switch to an IDE or IDLE.
Integrated Development and Learning (IDLE)
Integrated Development and Learning Environment (IDLE) comes with every Python installation, its advantage over other text editors is that it highlights important keywords (such as string functions), making it easier for you to interpret code.
​
Shell is the default mode of operation for Python IDLE. Basically, it is a simple loop that performs which follows four steps:
​
-
​Reads the Python statement.
-
Evaluates the results of it.
-
Prints the result on the screen.
-
Loops back to read the next statement.