Python Articles - Page 169 of 829

Implementation of Teaching Learning Based Optimization

Mithilesh Pradhan
Updated on 23-Mar-2023 16:48:21

774 Views

Introduction Teaching Learning Based Optimization (TLBO) is based on the relationship between a teacher and the learners in a class. In a particular class, a teacher imparts knowledge to the students through his/her hard work. The students or learners then interact with each other among themselves and improve their knowledge. Let us explore more about Teacher Learning Based Optimization through this article. What is TLBO? Let us consider a population p (particularly a class) and the number of learners l in the class. There may be decisive variables (subjects from which learners gain knowledge) for the optimization problem. Two modes ... Read More

How to add PDF in Tkinter GUI Python?

Manas Gupta
Updated on 23-Mar-2023 15:19:45

6K+ Views

This article will teach us how to display PDF files in the Tkinter GUI. We will be using the PyMuPDF library to read the pdf files and convert them into images which will then be displayed using Tkinter. For our task, we will do the following steps − Read the PDF file. Define a transformation matrix to apply on the pages of PDF to get their images. Count the total number of pages for error checking. Define the screen (the canvas) for our GUI. Define a helper function for converting a PDF page to a PIL image. Define ... Read More

Commands to Get Min, Max, Median, and Mean of a Dataset

Satish Kumar
Updated on 23-Mar-2023 16:33:43

2K+ Views

When working with datasets, it's important to understand characteristics of data. One of most fundamental aspects of a dataset is its central tendency - point around which data tends to cluster. This can be quantified in a number of ways, including minimum, maximum, median, and mean. In this article, we'll explore these different measures of central tendency and show you how to calculate them using a variety of programming languages. What is Minimum of a Dataset? The minimum of a dataset is smallest value in set. This value is useful for understanding lower bounds of data and can help identify ... Read More

How Can Python Improve Your Digital Marketing?

Radhika Dadhich
Updated on 20-Mar-2023 10:36:17

751 Views

Living in the age of digital marketing, we have realized the value of information. Therefore, we need more advanced tools for our eCommerce website to search for and process huge chunks of data every day. Moreover, these tools also help to perform repetitive tasks efficiently, including generating reports, gathering campaign performance insights and statistics, measuring conversion rates, analyzing customer behaviors, email marketing, and more. You can perform all these mundane tasks with ease, try adopting Python to gain real-time insights, thus making more informed decisions. In short, there are endless possibilities for using Python to automate your day-to-day processes, ... Read More

Modelling the Secant Method in Python

Dr Pankaj Dumka
Updated on 15-Mar-2023 17:05:48

4K+ Views

Secant method is one of the powerful methods to know the x-intercept (zeros) of a polynomial or any transcendental function. In this method, first we select (basically guess) the interval in which we expect the root ($\mathrm{𝑥_{1}}$, $\mathrm{𝑥_{2}}$). Then we draw a secant line to join the points on the function (A, B) corresponding to the guessed values as shown in the figure below. The secant line intersects the x-axis at the point $\mathrm{𝑥_{3}}$, as $\mathrm{𝑥_{3}}$ and $\mathrm{𝑥_{2}}$ are not close (i.e., their absolute difference is finite) we find the point corresponding to 𝑥3 on the curve i.e., C. ... Read More

Modelling the Regula Falsi Method in Python

Dr Pankaj Dumka
Updated on 15-Mar-2023 16:46:15

2K+ Views

In this tutorial, I will show you how to find the roots of an equation with the help of Regula Falsi which is also called as the "False Position Method". Let us consider the figure shown below. First we have searched for two 𝑥 values $\mathrm{x_{1}}$ and $\mathrm{x_{2}}$ at which the value of function ($\mathrm{y_{1}} $and $\mathrm{y_{2}}$) are different, means the points should be such that the products of these two should be negative (i.e. they should lie on the opposite sides of the X-axis). As these are not the exact point i.e. the points at which root exist, ... Read More

Modelling the Newton Raphson Method in Python

Dr Pankaj Dumka
Updated on 15-Mar-2023 16:13:20

3K+ Views

In this tutorial, I will show you how to evaluate the roots of a polynomial or transcendental equation with the help of a numerical method known as the Newton Raphson method. This is an iterative method in which we start with a initial guess (of independent variable) and then evaluate the new value of 𝑥 based on the guess. And the process goes on till the convergence is achieved. The method is explained with the help of a diagram as shown below. Based on $x_{g}$ the value of function $(f^{'} \left ( x_{g} \right ))$ is evaluated. Then a ... Read More

Modelling the Projectile Motion using Python

Dr Pankaj Dumka
Updated on 14-Mar-2023 16:10:15

10K+ Views

Let us first understand some basic concepts and equations based on which the projectile motion can be modelled. The figure shown below explains some basic terminologies of projectile motion. Here, "u" is the velocity with which the projectile is being projected. 𝛼 is the angle of projection of the projectile. The path taken up by the projectile during its flight. Range is the maximum horizontal distance travelled by the projectile. $\mathrm{h_{max}}$ is the maximum height attained by the projectile. Moreover, the time taken up by the projectile to travel the range is called as time of flight. The projectile ... Read More

Which is Easier to Learn, SQL or Python?

Tushar Sharma
Updated on 14-Mar-2023 16:39:24

1K+ Views

Among the most popular programming languages used today are Python and SQL, each of which offers distinct benefits and drawbacks of its own. What remains to be determined, though, is which one is simpler to learn. This article will examine the degree to which both Python and SQL are tough in order to help you decide which language best meets your needs. SQL Vs Python In the area of technology, programming languages like Python and SQL are both highly regarded. However, deciding which one is simpler to learn might be difficult. To assist you in making a wise choice, we ... Read More

What Kinds of Jobs are Available for a Freelance Python Developer?

Tushar Sharma
Updated on 13-Mar-2023 13:08:24

328 Views

Python is a popular and often used programming language in different parts of the world. It is a top choice for many projects, from scientific research to web development, because of its adaptability and simplicity of usage. It is obvious that there is a greater demand for Python developers given its acceptance and utility. Freelance Python coders are now even more in demand as a result of the increase in remote employment opportunities. Working on a variety of projects and collaborating with a variety of clients are opportunities available to you as a freelance Python developer. You can find a ... Read More

Advertisements