Core Philosophy of Python

Core Philosophy of Python

Python emphasizes code readability and simplicity. The core philosophy of Python is summarized by the document “PEP 20 (The Zen of Python)”, which includes aphorisms such as: Beautiful is better than ugly Explicit is better than implicit Simple is better … Continued
Python Syntax

Python Syntax

syntax noun syn·​tax | \ ˈsin-ˌtaks Definition of syntax 1 a: the way in which linguistic elements (such as words) are put together to form constituents (such as phrases or clauses) b: the part of grammar dealing with this 2 … Continued
Data Types

Data Types

In Python, the following are the commonly used data types: int (integers) – a whole number that can be positive, negative, or zero. For example: -10, 0, 100. float (floating-point numbers) – a decimal number that can be positive, negative, … Continued
Curiosities

Curiosities

One of the greatest strengths in Python is the large standard library providing tools suited to many tasks. Sometimes has been described as a “batteries included” Python philosophy. Python code can also be embedded directly into other programming languages. Python … Continued
Static vs Dynamic Typing

Static vs Dynamic Typing

Python is a dynamically typed language which means checking of the variable is done at the runtime. When an object is created in Python, memory is dynamically allocated to it. When the life cycle of the object ends, the memory … Continued
Indentation

Indentation

Python uses whitespace to delimit control flow blocks (following the off-side rule). Python borrows this feature from its predecessor ABC: instead of punctuation or keywords, it uses indentation to indicate the run of a block.
Data Structures

Data Structures

In Python, there are several built-in data structures that can be used to store and manipulate data, including: Lists: An ordered collection of elements, which can be of different data types, including other lists. Lists are mutable, which means that … Continued
Python Operators

Python Operators

In Python, the following are the commonly used operators: Arithmetic Operators: (addition) – Adds two values and returns the result. (subtraction) – Subtracts one value from another and returns the result. (multiplication) – Multiplies two values and returns the result. … Continued