Python

Install Python Numba in Ubuntu 22.04

Install Python Numba in Ubuntu 22.04

Numba is an open-source just-in-time (JIT) compiler for code written in Python. It integrates with NumPy well. Numba can generate machine code that is faster than the original Python code. For that, it utilizes LLVM Compiler Infrastructure. Numba can get us significant improvement in performance. With the help of a just-in-time (JIT) compiler, we can …

Install Python Numba in Ubuntu 22.04 Read More »

Identity operators in Python

Identity operators in Python

There are mainly two identity operators in Python – is operator and, is not operator. These are different from equality (==) and not equal (!=) operators. The identity operators check if the two variables corresponds to the same object and the memory location. We start with is operator first. is identity operator in Python As …

Identity operators in Python Read More »

Difference between equal to (==) and assignment operator (=) in Python

Difference between equal to (==) and assignment operator (=) in Python

In this article, we would discuss the difference between equal to (==) and assignment operator (=) in Python. In programming languages, we need to assign values to the variables this is achieved through assignment operator. Furthermore, to compare values stored in variables we use comparison operators. Want to know about comparison operators in Python? equal …

Difference between equal to (==) and assignment operator (=) in Python Read More »

Comparison operators in Python

Comparison operators in Python

A Python code often involves comparing values stored in variables. This is made possible through comparison operators. For instance, with if..else statements. If some condition satisfies, it executes A otherwise B. There are six comparison operators in Python – Equal, Not equal, Less than, Greater than, Greater than or equal to and, Less than or …

Comparison operators in Python Read More »

Nested if in Python

Nested if in Python

We consider this article to be an extension of if..else statement in Python. if statements inside a if statement are Nested if statements. In a regular if..else statement, we saw how the interpreter just checks for a specific condition – if it comes out to be True then, it execute some code else it executes …

Nested if in Python Read More »

Arithmetic operators in Python

Arithmetic operators in Python

In this article, we would cover Arithmetic operators in Python. These help us perform certain mathematical operations – Addition, Division, Exponentiation, Floor Division, Modulus, Multiplication and Subtraction. Arithmetic operators in Python We use two variables x and y here, which would be common for all except for few. x = 100 y = 10 I. …

Arithmetic operators in Python Read More »

if..else statement in Python

if..else statement in Python

One of the widely-used flow control statement type in Python is if..else statement. Through flow control statements, we can figure out which statement we need to execute next. Furthermore, while and for statements belong to the same group. Let’s say we have defined a condition which needs to be evaluated. And, there are two different …

if..else statement in Python Read More »

Augmented assignment statements in Python

Augmented assignment statements in Python

In this article, we would cover Augmented assignment statements in Python. What makes Augmented assignment statements different from assignment statements is the binary operation. The Augmented assignment statements contain both assignment statements as well as binary operation. Understand it with the help of an example. When we assignment integer value 10 to variable x then, …

Augmented assignment statements in Python Read More »

Scroll to Top