python

python

3 ways in Python to count the number of digits of a number

3 different ways to find the total number of digits of a number in Python. We will learn how to calculate the digit count by using a while loop, for loop and by calculating the length of the string with the len() method.

Read
python

Find average of numbers in a list using python

Learn three different ways to calculate the average of list numbers in Python. Each python program will take the numbers as input from the user and print out the average of all numbers.

Read
python

Using pip in python : Python tutorial 29

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 later .

Read
python

Find the Area of a circle in python : Python tutorial 28

In this python programming tutorial, we will learn how to find the area of a circle programmatically. Our program will take the radius as input from the user and calculate the circle area.

Read
python

Python Calendar Module : Python Tutorial 27

Let’s try to print current month ( July, 2017 ) using python “calendar” module :.

Read
python

Regular Expression ( Regex ) in Python : Python tutorial 26

There are different websites available online, using which we can check and verify a regex string. e.g  [this site](http://regexr.com) or[ this site](https://regex101.com) etc.

Read
python

Python factorial of a number : Three different ways to do it

In this python programming tutorial, we will learn how to find the factorial of a number programmatically. The program will ask the user to enter a number, it will find the factorial and print it on the console.

Read
python

Python class and objects : Python tutorial 24

Python is a “object oriented” programming language. In simple words, classes are templates for the objects , and objects are collection of variables and functions.

Read
python

Python Exception : Python Tutorial 23

Exceptions are errors that raised during execution time. That means your statement is correct but during execution time , it was trying to run a statement that cannot be done . Let’s take an example on a python exception :.

Read
python

Python program to check palindrome using one if-else

A String which is same in both direction is called a palindrome string. If we reverse a palindrome String, it will remain the same. e.g. “123454321” is a palindrome String but “12345 ” is not.

Read