Summery

Python is a high-level, general-purpose programming language created by Guido van Rossum and first released in 1991.
It lets you write instructions that a computer executes. It’s commonly used for automation, scripting, web development, data analysis, and cybersecurity.

Unlike C, Python handles many low-level details automatically, such as memory management.
Python code is typically executed by an interpreter, meaning it doesn’t have to be compiled for a specific system. It only requires python to be installed.

Interactive Python interpreter (REPL)

Running python or python3 without arguments starts the interactive Python interpreter (REPL).
With it, you can write short python scripts and execute them immidiently. It works on Linux and Windows alike.

REPL stands for Read-Eval-Print Loop:

  • Read your input.
  • Evaluate (execute) it.
  • Print the result.
  • Loop back and wait for more input.

Error handling

If you get an error in the middle of scripting, you need to redo that specific string you were creating. You can always press the up arrow to look up the last entered string.
You can edit the lines you already added (if they weren’t executed yet), but you can’t add new line between the already set ones - so it’s limited in that way.