Found 26504 Articles for Server Side Programming

Fidget Spinner Using Python

Jaisshree
Updated on 23-Aug-2023 08:56:52

784 Views

Fidget Spinner is one of the fun and interesting projects that can be made possible using existing Python modules. A fidget spinner is a device that remains stationary in one place and keeps spinning as long as the person flicks it constantly, or else it will stop spinning completely. To simulate this, we can use libraries like pygame which provides us with an interface which can be customized to our liking while building games in general. There is also another such library which will be used for running the fidget spinner, similar to its real-life counterpart. Installation and Syntax To ... Read More

Element Methods in Selenium Python

Jaisshree
Updated on 23-Aug-2023 08:55:35

697 Views

Selenium, an open source automation testing tool is used with other programming scripts like python , java , javascript and pearl to test web applications. It is widely used by developers for automation testing. Element Methods of Selenium 1. send_keys () − Used for setting up input text boxes which includes edit box, text area, fields inside forms and modifier keys. It extends properties from the keys class. Return Type − null 2. is_selected() − Checks if an element is selected or not by the user Return Type − boolean value ( True or False). 3. is_displayed() − Checks ... Read More

Generate a list using given frequency list

Atharva Shah
Updated on 22-Aug-2023 18:19:07

362 Views

Generating a list using a given frequency list is a common problem in programming. The task involves creating a list of elements based on the frequency distribution of those elements. This can be useful in many scenarios, such as generating a password with a specific character distribution or generating random sentences with specific word frequencies. In this article, we will explore how to generate a list using a given frequency list in Python. Installation and Syntax Python is a popular programming language for analyzing and modifying data, and it provides the Counter module from the collections package to make a ... Read More

Generate a Hermite_e series with given roots using NumPy in Python

Atharva Shah
Updated on 22-Aug-2023 18:17:34

250 Views

Hermite polynomials are a set of orthogonal polynomials that are useful in a variety of mathematical applications. They are commonly used in the solution of differential equations, probability theory, and quantum mechanics. The Hermite_e series is a variation of the Hermite polynomial that is used to represent a function in terms of its roots. In this article, we will discuss how to generate a Hermite_e series with given roots using NumPy in Python. Installation and Syntax NumPy is a Python library that provides support for numerical operations and it can be installed using pip and imported into Python using the ... Read More

Gauss’s Forward Interpolation

Atharva Shah
Updated on 22-Aug-2023 18:16:13

2K+ Views

Gauss's Forward Interpolation is a numerical method that enables us to ascertain the value of a function at a certain point within a specific range using a sequence of equally spaced data points. This method of polynomial interpolation uses Newton's Divided Difference Formula to calculate the coefficients of the polynomial. This method is particularly useful for estimating values for several equally spaced locations inside a given range. We'll examine the Python implementation method in this article. Installation To use Gauss' Forward Interpolation method, the numpy library can be installed via this command since we will be performing complex mathematical calculations. ... Read More

Gauge Chart in pygal

Atharva Shah
Updated on 22-Aug-2023 18:15:05

671 Views

Gauge charts are a type of chart used to represent a value or a range of values in a circular format. These charts are similar to speedometer gauges in cars, where a needle points to a particular value on the gauge. Gauge charts can be useful for visualizing data related to performance indicators, such as completion rates or progress towards a goal. In this blog post, we will explore how to create gauge charts using the pygal library in Python. Installation and Syntax To use pygal, you first need to install it using Package Manager PIP. pip install pygal ... Read More

Gantt Chart in plotly

Atharva Shah
Updated on 22-Aug-2023 18:12:44

1K+ Views

A Gantt chart is a popular way of representing a project schedule. It is a type of bar chart that illustrates a project schedule, including the start and end dates of tasks and the dependencies between tasks. Gantt charts are widely used in project management to visually represent project plans and schedules.In this technical blog, we will explore how to create a Gantt chart in Python using the Plotly library. Installation and Syntax Before we start creating Gantt charts using Plotly, we need to install the Plotly library in our Python environment. We can install Plotly using pip, which is ... Read More

G-Fact 19 (Logical and Bitwise Not Operators on Boolean)

Atharva Shah
Updated on 22-Aug-2023 18:11:22

358 Views

Boolean operators are the foundation of logic in computer science. They are used to perform logical and bitwise operations on binary data. In Python, the logical not operator is used to negate a boolean expression while the bitwise not operator is used to invert the bits in a number. In this blog post, we will explore the logical and bitwise not operators on booleans in Python. Operands and Truth Table The Boolean operators in Python are "and, " "or, " and "not." The "and" operator gives a result of True if both operands are True and False otherwise. The "or" ... Read More

Funnel Chart in Pygal

Atharva Shah
Updated on 22-Aug-2023 18:03:58

161 Views

A particular sort of chart that is frequently used to show the steps in a process is a funnel chart and it is named so due to its funnel-like design, which has a broad top and a small bottom. The chart sections are divided into stages, and the quantity of things that move through each stage is indicated by the size of each section. We'll learn how to make a funnel chart in Pygal, a Python framework for making interactive charts, in this tutorial. Installation and Syntax Pygal must first be installed using pip before it can be used so ... Read More

Functors and their use in Python

Atharva Shah
Updated on 22-Aug-2023 18:01:53

964 Views

Functional programming uses the idea of functors to help programmers create more modular, reusable, and reasonable code. They are a means to enclose a value or a function in an object and then manipulate that object without altering the original object. Functors are a potent tool for writing modular, reusable code in Python and may be implemented using classes. Syntax As Python functors are implemented using classes, a key component of the language, there is no special installation needed. Just build a class with an init method that accepts the original value or function as a parameter and a call ... Read More

Advertisements