Python Tutorials

Python Examples for Beginners: Python Code to Check Prime Number

Hits: 15 (Python Tutorials for Citizen Data Scientist) Python Code to Check Prime Number Example to check whether an integer is a prime number or not using for loop and if…else statement. If the number is not prime, it’s explained in output why it is not a prime number. A positive integer greater than 1 …

Python Examples for Beginners: Python Code to Check Leap Year

Hits: 18 (Python Tutorials for Citizen Data Scientist) Python Program to Check Leap Year In this program, you will learn to check whether a year is leap year or not. We will use nested if…else to solve this problem. A leap year is exactly divisible by 4 except for century years (years ending with 00). …

Python Examples for Beginners: Python Code to Solve Quadratic Equation

Hits: 14 (Python Tutorials for Citizen Data Scientist) Python Program to Solve Quadratic Equation This program computes roots of a quadratic equation when coefficients a, b and c are known. The standard form of a quadratic equation is: ax2 + bx + c = 0, where a, b and c are real numbers and a …

Python Examples for Beginners: Python Code to Find the Square Root

Hits: 8 (Python Tutorials for Citizen Data Scientist) Python Program to Find the Square Root In this program, you’ll learn to find the square root of a number using exponent operator and cmath module. Example: For positive numbers # Python Program to calculate the square root # Note: change this value for a different result …

Python Examples for Beginners: Python Code to Add Two Numbers

Hits: 18 (Python Tutorials for Citizen Data Scientist) Python Program to Add Two Numbers In this program, you will learn to add two numbers and display it using print() function. In the program below, we’ve used the + operator to add two numbers. Example 1: Add Two Numbers # This program adds two numbers num1 = 1.5 …

Python Basics for Beginners – Python | Basic Operators

Hits: 68 Python Basics for Beginners – Python | Basic Operators Operators are the constructs which can manipulate the value of operands. Consider the expression 4 + 5 = 9. Here, 4 and 5 are called operands and + is called operator. Types of Operator Python language supports the following types of operators. Arithmetic Operators …

Python Basics for Beginners – Python | Variable Types

Hits: 30 Python Basics for Beginners – Python | Variable Types Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the …

Python Basics for Beginners – Why should I learn Python?

Hits: 27 Python Basics for Beginners – Why should I learn Python? Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL). This tutorial gives enough understanding on Python programming language.   Why to …

Python Data Visualisation for Business Analyst – How to plot Lollipop Chart in Python

Hits: 172 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Lollipop Chart in Python In this data visualisation tutorial, you will learn How to plot Lollipop Chart in Python. Lollipop chart serves a similar purpose as an ordered bar chart in a visually pleasing way.   End-to-End Applied Machine …

Python Data Visualisation for Business Analyst – How to plot Ordered Bar Chart in Python

Hits: 100 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Ordered Bar Chart in Python In this data visualisation tutorial, you will learn How to plot Ordered Bar Chart in Python. Ordered bar chart conveys the rank order of the items effectively. But adding the value of the metric …

Python Data Visualisation for Business Analyst – How to plot Area Chart in Python

Hits: 65 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Area Chart in Python In this data visualisation tutorial, you will learn How to plot Area Chart in Python. By coloring the area between the axis and the lines, the area chart throws more emphasis not just on the …

Python Data Visualisation for Business Analyst – How to plot Diverging Lollipop Chart with Markers in Python

Hits: 67 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Diverging Lollipop Chart with Markers in Python In this data visualisation tutorial, you will learn How to plot Diverging Lollipop Chart with Markers in Python. Lollipop with markers provides a flexible way of visualizing the divergence by laying emphasis …

Python Data Visualisation for Business Analyst – How to plot Diverging Dot in Python

Hits: 32 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Diverging Dot in Python In this data visualisation tutorial, you will learn How to plot Diverging Texts in Python. Diverging dot plot is also similar to the diverging bars. However compared to diverging bars, the absence of bars reduces …

Python Data Visualisation for Business Analyst – How to plot Diverging Texts in Python

Hits: 42 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Diverging Texts in Python In this data visualisation tutorial, you will learn How to plot Diverging Texts in Python. If you want to see how the items are varying based on a single metric and visualize the order and …

Python Data Visualisation for Business Analyst – How to plot Diverging Bars in Python

Hits: 34 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to plot Diverging Bars in Python In this data visualisation tutorial, you will learn How to plot Diverging Bars in Python. If you want to see how the items are varying based on a single metric and visualize the order and …

Python Data Visualisation for Business Analyst – How to do a Pairwise Plot

Hits: 29 (Python Data Visualisation Tutorials) Python Data Visualisation for Business Analyst – How to do a Pairwise Plot In this data visualisation tutorial, you will learn How to do a Pairwise Plot in Python. Pairwise plot is a favorite in exploratory analysis to understand the relationship between all possible pairs of numeric variables. It …