Found 27104 Articles for Server Side Programming

How to Replace the Kth word in a String using Python?

Asif Rahaman
Updated on 18-Jul-2023 14:03:32

118 Views

Strings are important data types in Python. Strings can be defined as the sequence of characters. Replacing the kth word in a String is an operation in which we want to replace the word which appears kth times in a String. In this article we will follow several methods to achieve it. We would look into the brute force method like using the loop statement, modules and libraries like re etc. Using Loop and split Method Loops are very common statements in most of the modern programming languages. We can either use the for or while loop to iterate over ... Read More

Locating single elements in Selenium Python

Siva Sai
Updated on 18-Jul-2023 18:50:09

187 Views

Selenium is a powerful automation tool that enables programmatic control of a web browser. It is crucial for automating web applications for various functions, including testing. Finding items on a webpage is an essential Selenium feature. In this article, we'll look at utilising Python to find specific Selenium bits. Introduction to Selenium A well-known open-source web-based automation tool is Selenium. Because of its adaptability, developers can create scripts using a variety of computer languages, including Python, Java, C#, and others. Selenium makes it possible to automate actions that you would ordinarily perform with a browser, like clicking, typing, choosing, and ... Read More

How to Get the list of Running Processes using Python?

Asif Rahaman
Updated on 18-Jul-2023 14:01:34

4K+ Views

The operating system runs with hundreds of tasks/process at a single time. As a Python developer, this is important because often while dealing with programs that consume huge amounts of memory, we may want to delete some unimportant tasks. This article will explore how to get the running process list using Python. Using psutil Module The psutil module is a powerful cross−platform library for system monitoring and process management in Python. It provides a convenient and consistent API to access system−related information, such as CPU usage, memory utilization, disk usage, network statistics, etc. Being cross−platform, the same code applies to ... Read More

Locating multiple elements in Selenium Python

Siva Sai
Updated on 18-Jul-2023 18:49:08

282 Views

Selenium is an effective tool for remotely manipulating a web browser. It works well for testing purposes when automating web applications. Finding items on a webpage is a crucial Selenium feature. In this lesson, we'll concentrate on utilising Python to find numerous Selenium items. Introduction to Selenium A well-known open-source web automation tool is Selenium. It gives programmers a means to create scripts in a variety of languages, including Python, Java, C#, etc. With Selenium, you can automate any browser-related actions, including clicking, typing, selecting, and navigating. Setting Up Selenium It's essential to make sure Selenium is properly configured and ... Read More

Loan Eligibility Prediction using Machine Learning Models in Python

Siva Sai
Updated on 18-Jul-2023 18:48:08

675 Views

Predicting loan eligibility is a crucial part of the banking and finance sector. It is used by financial institutions, especially banks, to determine whether to approve a loan application. A number of variables are taken into consideration, including the applicant's income, credit history, loan amount, education, and employment situation. In this post, we will demonstrate how to predict loan eligibility using Python and its machine learning modules. We'll introduce some machine learning models, going over their fundamental ideas and demonstrating how they can be used to generate predictions. Step 1: Understand the Problem Predicting whether a loan will be accepted ... Read More

Loan Calculator using PyQt5 in Python

Siva Sai
Updated on 18-Jul-2023 18:44:28

233 Views

Welcome to this thorough article on using PyQt5 in Python to build a Loan Calculator. The PyQt5 library's robust features can be used to provide a straightforward and approachable user interface for our calculator. This post will provide a thorough explanation of how to build such a calculator, along with real-world examples to help make the process more understandable. Introduction to PyQt5 Cross-platform apps can be made using PyQt5, a set of Python bindings for Qt libraries. It combines the greatest features of Python and Qt and gives developers the freedom to create code in Python while utilising the extensive ... Read More

How to Get the Last N characters of a String in Python

Asif Rahaman
Updated on 18-Jul-2023 13:59:46

2K+ Views

String Manipulation is an important task in Python. This may involve slicing the string, taking N characters, etc. These are essential tasks in Text preprocessing, like in NLP tasks, Password and data security, string comprehension and encoding, etc. Fortunately, Python offers a variety of ways to perform string manipulation. In this article, we will learn how to obtain the last N characters in a String in Python. Using for Loop The loop is a very common expression for most programming languages. This allows us to iterate over iterable objects, generate a series of values, and more. Since the String ... Read More

How to Get the First Element in List of Tuples in Python?

Asif Rahaman
Updated on 18-Jul-2023 13:57:02

807 Views

Tuples are immutable data types in Python that can hold heterogeneous data types. List, on the other hand, are multiple data types that can hold heterogeneous data. In this article, we will explore various methods to retrieve the first element from a list of tuples using function−based components. We will explore several methods like loops, list comprehension, zip method, etc. Using Loop Method Loops are common statements in almost any Programming language. We can use the loop statement along with the indexing property of the iterable objects of Python to access the first elements of the iterable objects. ... Read More

Loading Images in Tkinter using PIL

Siva Sai
Updated on 18-Jul-2023 18:41:12

900 Views

Python, an incredibly flexible programming language, has a variety of libraries that can handle diverse tasks. Tkinter emerges as Python's default package when it comes to creating a graphical user interface (GUI). Similar to this, the Python Imaging Library (PIL) is frequently used for image processing. In order to properly explain how to load images in Tkinter using PIL, this guide combines the two and includes real-world examples. Introduction to Tkinter and PIL Let's quickly explain Tkinter and PIL before moving on to the main subject. The default GUI toolkit for Python is called Tkinter. It is easy to use ... Read More

Loading Image using Python Mahotas

Siva Sai
Updated on 18-Jul-2023 18:39:53

122 Views

Python is known for its strong libraries that can handle nearly any task, and image processing is no different. For this purpose, a popular choice is Mahotas, a computer vision and image processing library. This article explores how to load images using Python's Mahotas, providing you with practical examples. Introduction to Mahotas Mahotas is a sophisticated library that contains numerous methods for image processing and computer vision. With a strong focus on speed and productivity, Mahotas enables you use over 100 features, including color space conversions, filtering, morphology, feature extraction, and more. This guide focuses on one of the most ... Read More

Advertisements