Python Introduction
Contents
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:
server-side web development,
software development,
math, and
system scripting.
2.1.2. What is Python capable of?#
Web applications can be developed on a server using Python.
Workflows can be made with Python and other tools.
Python has a database system connection feature. Files can also be read and changed by it.
Python can execute intricate mathematical operations and manage large amounts of data.
Python can be used to produce software that is ready for production or for quick prototyping.
2.1.3. Why use Python?#
Python runs on a variety of platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a straightforward syntax that resembles that of English.
Compared to other programming languages, Python’s syntax enables programmers to construct applications with less lines of code.
Since Python uses an interpreter system, code can be executed immediately after it is written. As a result, prototyping can proceed quickly.
Python can be used in a functional, object-oriented, or procedural manner.
2.1.4. Good to know#
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.
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#
Python was created with readability in mind and, thanks to mathematical influence, shares certain parallels with the English language.
In contrast to other programming languages, which frequently employ semicolons or parentheses, Python uses new lines to complete a command.
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.