Devesh Chauhan has Published 56 Articles

Proxy Design Pattern for Object Communication in Python

Devesh Chauhan

Devesh Chauhan

Updated on 19-Jan-2024 10:34:24

35 Views

Classes and objects are the fundamental elements of programming. These entities construct the entire logic and controls the access to different parts of the code. There could be a situation where we are restricted by the complexity of the operation and therefore, we require an efficient and optimized solution. The ... Read More

Protected variable in Python

Devesh Chauhan

Devesh Chauhan

Updated on 19-Jan-2024 10:26:25

94 Views

In programming the concept of protected variable is used to create an access control system. In this system, we establish a hierarchy or level of access control. This concept solidifies the basis of object-oriented programming. The technical meaning of a protected variable remains the same but the syntax and behaviour ... Read More

Python Program to Extract Strings between HTML Tags

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:53:54

606 Views

HTML tags are used to design the skeleton of websites. We pass information and upload content in the form of strings enclosed within the tags. The strings between the HTML tags determines how the element will be displayed and interpreted by the browser. Therefore, the extraction of these strings plays ... Read More

Python Program to Extract String Till First Non-Alphanumeric Character

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:51:42

208 Views

Python strings are sequence of characters that represent information or data. A normal string can contain various characters that are enclosed within single or double quotes but an Alphanumeric string only consist of digits and letters. Both alphanumeric and non-alphanumeric strings are used and applied in various scenarios including password ... Read More

Python program to extract N largest dictionaries keys

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:50:05

104 Views

A python dictionary is a data structure that can be used for numerous operations making it a prolific programming tool. It stores data in the form of key-value pairs i.e., each data can be labelled with a unique key. Keys in dictionaries are identifiers that are associated with different values, ... Read More

Python Program to Extract Mesh Matching Strings

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:49:31

39 Views

Pattern recognition is an important programming concept. It allows us to retrieve specific data that satisfies a particular condition or match a particular sequence. This principle is helpful in various fields including language and image processing. String matching helps us to extract meaningful information from a large collection of data. ... Read More

Python program to extract key-value pairs with substring in a dictionary

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:47:49

601 Views

Dictionaries in python are data structures that store data in the form of key-value pairs. Each key is unique and it is associated with different values. A dictionary helps us to access and retrieve data efficiently allowing a programmer to build an optimized code. Specific key-value pairs can be extracted ... Read More

Python program to extract dictionary items for custom values

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:10:27

46 Views

Custom values are specific values that are defined and selected under certain criteria. In a large and complex dataset, specification is very important for constructing an optimized program and therefore extraction of relevant data becomes very important. We can pass a reference list according to which the values can be ... Read More

Python program to extract a single value from JSON response

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:09:04

2K+ 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 ... Read More

Python program to equal character frequencies

Devesh Chauhan

Devesh Chauhan

Updated on 12-Jul-2023 13:04:57

34 Views

Python consists of numerous built-in functions that are designed to perform a wide range of operations including string manipulation, array analysis, algebraic reasoning etc. Strings in python is a data type in which characters are arranged in a sequence. These characters are indexed to acquire specific position in a sequence, ... Read More

Advertisements