2.1. Python Introduction#

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.

# Example 1: Hello World
print("Hello World")
Hello World

2.1.1. What exactly is Python?#

A well-liked programming language is Python. In 1991, Guido van Rossum produced it, and it became available.

It’s employed for:

  1. server-side web development,

  2. software development,

  3. math, and

  4. system scripting.

2.1.2. What is Python capable of?#

  1. Web applications can be developed on a server using Python.

  2. Workflows can be made with Python and other tools.

  3. Python has a database system connection feature. Files can also be read and changed by it.

  4. Python can execute intricate mathematical operations and manage large amounts of data.

  5. Python can be used to produce software that is ready for production or for quick prototyping.

2.1.3. Why use Python?#

  1. Python runs on a variety of platforms (Windows, Mac, Linux, Raspberry Pi, etc).

  2. Python has a straightforward syntax that resembles that of English.

  3. Compared to other programming languages, Python’s syntax enables programmers to construct applications with less lines of code.

  4. Since Python uses an interpreter system, code can be executed immediately after it is written. As a result, prototyping can proceed quickly.

  5. Python can be used in a functional, object-oriented, or procedural manner.

2.1.4. Good to know#

  1. Python 3 is the most recent major version, and we’ll be using it in this course. Nevertheless, Python 2 continues to be used widely despite receiving only security updates.

  2. Python will be written in a text editor for this tutorial. Python can be written in an Integrated Development Environment (IDE), such as Thonny, Pycharm, Netbeans, or Eclipse. These IDEs are especially helpful for organising huge collections of Python files.

2.1.5. Comparison of Python syntax with other programming languages#

  1. Python was created with readability in mind and, thanks to mathematical influence, shares certain parallels with the English language.

  2. In contrast to other programming languages, which frequently employ semicolons or parentheses, Python uses new lines to complete a command.

  3. To describe scope, including the scope of loops, functions, and classes, Python uses indentation with whitespace. Curly brackets are frequently used in other computer languages for this reason.