Found 26504 Articles for Server Side Programming

How to Locate Elements using Selenium Python?

Saba Hilal
Updated on 04-May-2023 17:49:34

1K+ Views

With the frequent change in technology to present the content on the web it is often needed to redesign and restructure the content of the web pages or websites. Selenium with Python is a good combination that is helpful to extract the desired content from web pages. Selenium is a free open-source automated tool that is used for evaluating web applications across multiple platforms. Selenium Test Scripts can be written in a variety of computer languages such as Java, C#, Python, NodeJS, PHP, Perl, etc. In this Python Selenium article, using two different examples, the ways to locate elements of ... Read More

How to iterate through a nested List in Python?

Saba Hilal
Updated on 04-May-2023 17:45:23

6K+ Views

In this article, we will understand the concept of nested Lsit in Python and how to iterate through a nested list in Python language, Sometimes, the task is to go through each element of a list or to find the elements in a list or to use the information given in a list. In all these cases, one has to iterate through a list. The list can be made up of a single type of elements or multiple types of elements can be used in a list. The three different examples would be used to represent the different ways ... Read More

How to invert the elements of a boolean array in Python?

Saba Hilal
Updated on 04-May-2023 17:39:39

1K+ Views

Sometimes, the task is to invert a boolean array. This is often required if the files contain a column with true or false values and the need is to use the column values in the inverted manner. For example, if a CSV file contains the data column as Covid Negative status showing True for covid –ve patients and the need is to create a column of covid+ve status. In such cases, the array inversion for the boolean values is required. In this Python article, using four different examples, the different ways to invert a Boolean array with or without using ... Read More

How to make a basic Scatterplot using Python-Plotly?

Saba Hilal
Updated on 04-May-2023 17:23:50

934 Views

Sometimes, the task is to analyze a dataset and use charts or plots for data visualization. Plotly is a nice open-source graphing library that can be used with Python and is used for making a variety of plots and charts quickly and easily. In this article, using two different examples, this Python library called Plotly is used with Python code to make the scatter plots. In the first example, the Python installed in the computer system is used to run a Python program that is written for making a scatter plot. In another example, using the Google Colab the ... Read More

Page Faults in LRU

Rudradev Das
Updated on 05-May-2023 11:35:46

2K+ Views

Paging is a memory management process related the operating systems. It stores or retrieve some process data from the secondary data storage into the primary data storage or memory by using the page segement. The paging process happens when the process encounters any fault in a page and we can not use a new free page to satisfy the allocation process here. The LRU process generates the particular need of a replacement algorithm. It decides which page needs to be replace when a process produce a new page. Let us take an example – Input taken for the process − ... Read More

Page Faults in LFU

Rudradev Das
Updated on 05-May-2023 11:29:40

3K+ Views

The Least Frequently Use aka LFU is a concept of page memory management, can also be used as a replacement algorithm. This process take a lead we the particular page needs a replacement when a new page is on the way by the process. LFU is one of the page replacement policy where an user can replace the least frequency of a particular operation page. If the page frequency is same in a process, then it will come first on the replacement list. Here we will take a page sequence of an array of pages denoted as pages[], whose length ... Read More

How to Make a Bell Curve in Python?

Saba Hilal
Updated on 14-Jul-2023 17:17:33

2K+ Views

It is a well-known phenomenon that if we take the average of many observations of a random variable, the distribution converges to a normal distribution as the number of observations is increased. For example, if we throw two dice and calculate the sum of the random values that show on these dice each time, it will show a bell-shaped curve as the values that are measured will show the normal tendency. It is also observed that it will not show a perfect bell-shaped curve if it is done only 50 times, and it will show a good bell-shaped curve if ... Read More

What are the limitations of Python?

Md Waqar Tabish
Updated on 05-May-2023 14:23:40

8K+ Views

Python is a popular and widely used programming language known for its simplicity, flexibility, and productivity. It is used in various applications, including web development, data science, and automation. However, like any language, Python has its limitations. Python's main limitations include its performance and speed, memory management, support for concurrency and parallelism, static typing, and web support. Python is an interpreted language executed at runtime by a virtual machine or interpreter. This can make it slower and less efficient than compiled languages like C or C++, and it may not be suitable for applications requiring high performance. Additionally, Python uses ... Read More

Positive and negative indices in Python?

Md Waqar Tabish
Updated on 05-May-2023 14:22:15

5K+ Views

By indexing, we can access items in Python sequence data types. Strings, lists, tuples, and range objects are sequence data types. In this tutorial, we'll go over-indexing in further detail. What Are List Indexes? Any linear data structure in any programming language is built around indexing. The default index for each machine starts at 0 and continues up to n-1. In this case, n represents the overall number of items in the corresponding data structure. Types include Positive indexing − Increases from 0 to 1. Negative indexing − each traversal moves from tail to head, starting with the last ... Read More

What are the different types of Python data analysis libraries used?

Md Waqar Tabish
Updated on 05-May-2023 14:19:22

299 Views

Without question, Python is among the first things employers look for in a data scientist's skill set. It has quickly established itself as the standard language in the data science industry. It has repeatedly come first in worldwide data science polls, and its ubiquity is only growing! But what distinguishes Python for data scientists so greatly? Like our physical body is made up of several organs for various purposes and a heart to keep them all functioning, the core of Python gives us access to an easy-to-code, object-oriented, high-level language (the heart). For each task category, such as math, data ... Read More

Advertisements