Python Tutorials

Python Examples for Beginners: Python Code to Solve Quadratic Equation

(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 ≠ 0 …

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

(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 num = …

Python Examples for Beginners: Python Code to Add Two Numbers

(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 num2 = …

Python Basics for Beginners – Python | Basic Operators

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 Comparison (Relational) …

Python Basics for Beginners – Python | Variable Types

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 reserved memory. …

Python Basics for Beginners – Why should I learn Python?

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 Learn Python? …

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

(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.   Setup Run this once before …

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

(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 above the …

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

(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 peaks and …

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

(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 on any …