Overview The area of the triangle refers to the full area which means the perimeter of the triangle and the inside area. So to calculate the area of a triangle we will be calculating the perimeter of its and then the area but all these was the manual understanding of finding it. So by using JavaScript we will be automating this whole process which means a user only enters the sides of the triangle and to the interface and the area of the triangle will be calculated automatically. Expression (Heroine's Formula) The given below shows the heroine's formula expression − ... Read More
Variables are fundamental elements in programming that allow us to store and manipulate data. In Python 3, variables are dynamically typed, meaning they can hold different types of data throughout their lifetime. Understanding how to use variables effectively is crucial for writing robust and flexible code. In this article, we will understand the use of variables in Python with the help of different examples. Variable Basics In Python, variables are created by assigning a value to a name using the "=" operator. The name of the variable is chosen by the programmer and should follow certain naming conventions. Variable names ... Read More
In this article we will get to know about various method using which we can find the prefix tuple records using python programming language. Tuple is an immutable sequence-like list whose value cannot be changed once assigned. Here prefix tuple is a collection of tuples which have a common prefix. Each element of tuple can be of any data type or it can also be in mixed form. Example records = [('Kalyan', 123), ('Gungun', 122), ('Komal', 456), ('Isestru', 789), ('Kosal', 321)] prefix = 'Ko' Here you can see we have list of records where tuples are there in ... Read More
In this article we will learn how to find the prefix frequency in a string list using python. There are various ways to solve this program in python, we will look at some of them. Finding prefix frequency can help in finding the pattern and distribution of word uses in the string. Method 1: Using Simple for Loop Example def find_prefix_freq(strings, prefix): count = 0 for string in strings: if string.startswith(prefix): count += 1 ... Read More
In this article we will learn about Power-Function distribution in statistics. We will checkout various methods using which we can analyze the power function distribution. In this post we will also know about how to fit the power function distributions if required. Before that let’s get to know about what Power-Function Distribution is. Power-Function Distribution This is continuous probability distribution used to model the data. Using the power function, we can analyze the small event which create some impact. Using the power function, we can get detail about rare events, identify outliers and can also make predictions about extreme values. ... Read More
In this article we will get to know Power Normal Distribution, its application and uses. We will learn to analyze the distribution by the help of different methods including PDF and CDF. Before that let's see what Power Normal Distribution is. Power Normal Distribution Power Normal Distribution is same as normal distribution only difference is, this distribution includes the power parameter which is used to control the shape of the distribution. It provides us easy way for modeling the data which will show the characteristics of non-normal distribution. Let’s see the power normal distribution using various methods − Method 1: ... Read More
In this article we will learn about Power Log-Normal Distribution, its application and uses. We will learn to analyze the distribution by the help of different methods including PDF and CDF. Before that let's see what Power Normal Distribution is. Power Log-Normal Distribution Power Log-Normal Distribution is variation of log-normal distribution. The only difference is, we obtain power log-normal distribution by applying power transformation into the log-normal distribution. Difference between the power normal distribution and the power log-normal distribution is the power normal distribution is the variation of normal distribution whereas power log-normal distribution is a variation of log-normal distribution. ... Read More
This article we will learn about various methods using which a substring can be counted inside the given string. While working with python you may have come to a scenario when you need to check a given word has occurred how many times in the sentence or any string, so to get the count of substring inside the larger main stirring we will see some programs. Method 1: Using the Count Method This is a simple and easy built-in method in the python which allows us to count the substring inside the main string. Its time complexity is O(n). Example ... Read More
Pygame is a powerful library for creating 2D games and graphical applications in Python. It provides a wide range of functionalities, including the ability to manipulate and transform images. In this article, we will explore how to use the mouse to scale and rotate an image in Pygame. Prerequisites Before understanding the process of scaling and rotating images, it's essential to have a basic understanding of Pygame and its event-handling mechanism. Also, make sure you have Pygame installed in your Python environment. You can install it using pip with the command pip install pygame Setting Up ... Read More
Pairwise distance calculation is used in various domains including data analysis, machine learning and image processing. We can calculate the pairwise distance between every pair of elements in each dataset. In this article we will get to know about various methods to calculate pairwise distances in python for arrays representing data in multiple dimensions. We will also get to know about the pdist function available in the SciPy library. Pairwise Distance One thing to remember: While calculating the pairwise distance in n-dimensional space we have to find the distance between each pair of points. You can choose any distance metrics ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP