Python Articles

Page 130 of 855

Python program to extract a single value from JSON response

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 3K+ Views

Value extraction is a very popular programming concept and it is used in a wide variety of operations. However extracting values from a JSON response is a different concept all together. It helps us to build logic and target specific values in a complex dataset. This article will explain the various methods that can be used to extract a single value from a JSON response. What is a JSON Response? A JSON (JavaScript Object Notation) response is a widely accepted data format through which a server responds to a client's request. Whenever a client requests for certain APIs ...

Read More

Python program to equal character frequencies

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 214 Views

Python provides numerous built-in functions for string manipulation and analysis. In this article, we'll explore how to modify an input string to equalize character frequencies, ensuring each character appears the same number of times as the most frequent character. Understanding the Problem Our task is to modify a string so that each character has equal frequencies. We find the maximum occurring character and adjust all other characters to match that frequency. Example Scenario Consider this input string: input_str = "thisisateststring" print("Original string:", input_str) # Count character frequencies from collections import Counter freq = ...

Read More

Python program to draw a bar chart using turtle

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 1K+ Views

Graphical representation of data provides an enhanced understanding of complex sub-structures and helps us easily interpret hidden patterns and trends. Python offers a built-in module called turtle that allows us to create visual graphics programmatically. The turtle module is a built-in Python library that enables drawing graphics on a turtle graphics screen. In this article, we will create a bar chart using the turtle module ? Understanding the Turtle Module The turtle module uses a virtual turtle object to create graphics. This turtle can move around the screen and draw shapes. Let's explore the key functions needed ...

Read More

Python program to divide dictionary and its keys into K equal dictionaries

Devesh Chauhan
Devesh Chauhan
Updated on 27-Mar-2026 554 Views

A dictionary is a unique data structure in Python that stores data as key-value pairs, where each key is a unique identifier used to access its corresponding value. We can perform various operations on dictionaries to manipulate the stored data. This article explains how to divide a dictionary into K equal dictionaries where each value is divided by K, and K represents the number of keys in the original dictionary. Understanding the Problem Given a dictionary, we need to create K copies where each value is divided by K (the total number of keys). Let's understand this ...

Read More

AppJar Module in Python

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 920 Views

The Python AppJar module simplifies GUI development by providing an easy-to-use interface for creating graphical user interfaces. AppJar comes with pre-built widgets such as buttons, labels, text boxes, and dropdown menus, making it perfect for both beginners and experienced developers. What is AppJar Module? The AppJar module is a user-friendly toolkit that makes designing Graphical User Interfaces (GUIs) in Python easier. It provides a straightforward and efficient way to design GUI applications without extensive coding knowledge. Installation Install AppJar using pip package manager ? pip install appJar Once installed, import the AppJar ...

Read More

Understanding Word Embeddings in NLP

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 779 Views

Word embeddings play a crucial role in Natural Language Processing (NLP) by providing numerical representations of words that capture their semantic and syntactic properties. These distributed representations enable machines to process and understand human language more effectively. In this article, we will explore the fundamentals, popular embedding models, practical implementation, and evaluation techniques related to word embeddings in NLP. Fundamentals of Word Embeddings Word embeddings are dense, low-dimensional vectors that represent words in a continuous vector space. They aim to capture the meaning and relationships between words based on their context in a given corpus. Instead of ...

Read More

Understanding Snowball Stemmer in NLP

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 2K+ Views

In the field of Natural Language Processing (NLP), stemming is a crucial text preprocessing technique that reduces words to their base or root form. The Snowball Stemmer is a popular and efficient algorithm that performs this task across multiple languages, making it an essential tool for various NLP applications. This article explores the Snowball Stemmer in detail, including its functionality, implementation in Python, and practical applications in text analysis and information retrieval tasks. What is Snowball Stemmer? The Snowball Stemmer, also known as the Porter2 Stemmer, is an advanced stemming algorithm designed to reduce words to their ...

Read More

Python Program To Write Your Own atoi()

Prabhdeep Singh
Prabhdeep Singh
Updated on 27-Mar-2026 630 Views

We are given a string that may represent a number and need to convert it into an integer using Python. The atoi() function is used in C programming to convert a string parameter into an integer value if the string is a valid integer, otherwise it shows undefined behavior. Sample Examples Input 1 string S = "9834" Output 9834 Explanation: The string represents a valid number, so we get the same output as an integer. Input 2 string S = "09 uy56" Output ...

Read More

MultiLabel Ranking Metrics - Coverage Error in Machine Learning

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 439 Views

Evaluating the quality of multi-label models necessitates the use of multi-label ranking metrics. One such metric is Coverage Error, which quantifies a ranking model's ability to cover all relevant labels for a particular instance. Multi-label ranking tasks involve the assignment of multiple relevant labels to a given instance, such as tagging images or categorizing documents. In this article, we delve into the concept of Coverage Error and explore its significance in assessing the effectiveness of multi-label ranking models. What is Coverage Error? Coverage Error is a metric used in machine learning to evaluate multi-label ranking models. It ...

Read More

Making a Captcha Alternative for the Visually Impaired with Machine Learning

Priya Mishra
Priya Mishra
Updated on 27-Mar-2026 230 Views

Visually impaired individuals face significant accessibility challenges when encountering visual-based CAPTCHAs. Machine learning can be utilized to create accessible captcha alternatives for the visually impaired. This article explores an alternative solution for CAPTCHA that harnesses the power of machine learning. By making use of machine learning algorithms and adaptive technologies, we aim to bridge the gap, ensuring equal access and user experience for visually impaired users. Prerequisites Python − Make sure that Python 3.6 or higher is installed on the system. Required Libraries − The program uses the following libraries, ...

Read More
Showing 1291–1300 of 8,546 articles
« Prev 1 128 129 130 131 132 855 Next »
Advertisements