## *args and **kwargs in Python and difference between them

*args and **kwargs in python : In this python tutorial, we will discuss about two frequently used argument keywords ‘*args’ and ‘**kwargs’ . One thing we should keep in mind that we can use any name instead of ‘args’ and ‘kwargs’ for these variables. That means you can use any Read more…

## Write a python program to find the number of cpu count

Find the number of CPUs using python : Using python, we can easily check the number of CPUs available in a system. In this example program, we will learn two different methods to get this count.   What is CPU numbers : CPU or central processing unit is the main Read more…

## What is Docstring and how to write docsrting in python

Docstring in python : A docstring is a string that is used for documentation of a module,function,class or method in python. This string comes as the first statement after the name of the function , module etc . The value of a docstring can be printed out by using _doc_ Read more…

## Python Program to find if a number is Armstrong or not

Find if a number is Armstrong or not using python : A three-digit number is called an Armstrong number if the sum of cube of its digits is equal to the number itself. For example, 407 is an Armstrong number since 4****3 + 0****3 + 7****3 = 64 + 0 Read more…

## Python program to sort all words of a string in alphabetical order

Write a python program to sort all words of a String in Alphabetical order : In this python programming tutorial, we will learn how to sort all words in alphabetical order. Mainly we are going to use the split method of python string and for-loop for iterating through the words. Read more…

## Python Program to find the LCM of two numbers

Find the LCM of two numbers in python : What is an LCM value of two numbers? LCM or least common multiplier of two number is the smallest number that is divisible by both of these numbers. i.e. the lowest number starting from 1, that is divisible by both. To Read more…

## How to check if a date is valid or not in python

Python program to check if a date is valid : In this tutorial, we will check if a date is valid or not using python. A date is called valid if it actually exists in the calendar. Our program will ask the user to enter the date at the beginning Read more…

## Count number of digits in a number in Python

Count the number of digits in a number using python : Using python, count the number of digits in a number. In this tutorial, we will learn how to count the total number of digits in a number using python. The program will get the input from the user and Read more…

## Find average of numbers in a list using python

Calculate the average of numbers in a list using python : In this tutorial, we are going to show you three different ways to calculate the average of numbers of a list in python. We are using python3 (version 3.6.1). (You can check your python3 version by running python3 â€“version Read more…

## Using pip in python : Python tutorial 29

What is pip : pip is a package management system , we can use it to install and manage software packages in python. pip is included by default for python 2.7.9 and later . For python3, it is called pip3 which is also included by default for Python 3.4 and Read more…