Skip to main content
XOR in Python with Example

XOR in Python with Example

The XOR operator, also known as the exclusive or operator, is a bitwise operator used in Python to perform logical operations on binary values. This article explains how to use the XOR operator in Python with code examples. We will look to explore multiple ways to perform XOR (exclusive OR) operations in Python with examples. […]

Read More

Python Do-While loop

Python do while with Example

Python doesn’t have do-while loop. However, you can achieve a similar effect by using a while loop and a break statement. This Example helps to create a program that helps to execute ‘do while loop’ with an example. There are no of loops available to iterate over elements/items but do-while does not have.

Read More

How to Use Logging in Python

A built-in module called Python log defines the classes and functions that implement the adaptable event-logging system for libraries and applications. Logging is the process of storing information in a log file or printing into stdout, which can then be utilized for debugging if a problem arises.

Read More