## Python Program : Selection Sort in Python

In this post we understand about selection sort  with a example of python program First we understand about sorting Ordering data in an increasing or decreasing manner is called sorting Selection Sort It means that it check first element with second element if second element is greater than it swap  . Input : x= [10,20,90,100,80,50,30,40 … Read more

## Bubble Sort in Python / Python Pragram

First we understand what is sorting  : Ordering data in an increasing or decreasing manner is called sorting Now we understand Bubble Sort : Bubble sort is a simple sorting algorithm that repeatedly steps through a list , compares  adjacent  elements and swaps them if they are in the wrong order The algorithm gets its … Read more

## Find the number is Armstrong number or not // python program

First we understand what is Armstrong number : Armstrong number : >An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Input : >371 Output : > number is Armstrong Algorithm : first we take input from user then input … Read more

## What Is Lazy Method For Reading Big File In Python?

In this post, we will learn What Is Lazy Method For Reading Big File In Python involves reading the file in chunks even in lines to avoid the loading of the entire files at once in the program which could make the program more complex and heavy. And generally, we use this approach at times … Read more

## Default Argument | How Do I Define A Function With Optional Arguments?

In this post, we will learn How to define a function with default optional arguments which we can do by providing default values in the arguments in the function definition only see the example of the same have a look at the example given below. Function With Default Arguments As we know there could be … Read more

## How to Invert The x or y axis in Python ?

In this post, we will learn How to Invert the x or y-axis which we can perform using matplotlib library where there are methods like set_xlim(), and set_ylim(). Inverting The Axis Here we have given an example that we can directly use as it is to convert x axis into y axis and visa versa. … Read more

## How We Can Use Pip To Install Packages To Anaconda Environment

In this post, we learn How we can Use Pip to install packages to Anaconda Environment As we use conda to manage the packages in the envirnment but we can always use it for the same purpose in the in it environment too, for the same we need to follow the steps to implement the … Read more

## How to Access dict Keys Like An Attribute?

In this post, we will learn about how we can Access dict Keys like an attribute which we can perform using dict class as by inheriting this class and creating an object of it, and defining these keys as attributes. Accessing Keys Like An Attribute Here we give an example to show we can do … Read more

## Difference between ‘cls’ and ‘self’ in Python classes?

In this post, we will learn the Difference between ‘cls’ and ‘self’ in Python classes As they both are used for referring to the same class objects but both have different meanings and here we will get to know those differences. cls Vs Self Keywords Both of the keywords are used for referring to the … Read more

## How To Get The Return Value From A Thread?

In this post, we will learn How to get the return value from a thread which we can do using the join() method for waiting for a thread to get executed and getthe value as a variable which we have nicely explained below. Returning The Thread Here to learn more about the concept and get … Read more