Dr Ruqaiya Khanam has Published 14 Articles

Merging two strings with Suffix and Prefix using Python

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 14:25:58

177 Views

String manipulation often necessitates merging two strings based on shared suffix and prefix sequences; suffices to be at the end, prefixes being at its beginning. This article will show how to merge two strings with suffixes and prefixes using Python language. We are considering two examples where we have two ... Read More

Merging duplicates to list of lists

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 14:22:46

69 Views

At hand is the challenge of Python lists - an incredibly flexible data structure capable of holding various kinds of information when dealing with lists within lists (where multiple duplicate entries could exist) duplication is likely. Therefore a Pythonic solution must exist that removes duplicated sublists to ensure each sublist ... Read More

Merging nested lists in Python

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 12:48:51

212 Views

Nesting lists in Python refers to multiple lists within one another that can be useful when performing data manipulation tasks; however, occasionally we may wish to change or flatten this nested structure by "flattening a list", in Python terminology meaning changing from multiple hierarchical structures into one single (non-nested) structure ... Read More

Minimum number of subsets with distinct elements using counter

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 12:45:56

79 Views

To represent a given set of items in this problem, the smallest number of subgroups must be present and contain unique members in each subset. In this article, the user will learn how to obtain the minimum number of subsets with distinct elements using a counter in Python. Two examples ... Read More

Python program to generate a list of alphabets in lexical order

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 12:37:27

53 Views

Lexical order can be used in various applications like sorting algorithms, organizing data in dictionaries or indexes, and string comparisons. In this article, we will explain that how to generate a list of alphabets in lexical order. Lexical order is also known as lexicographic or dictionary order. The words are ... Read More

Message Encode-Decode using Python Tkinter

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 12:27:13

194 Views

In this article, the user will understand how to encode-decode messages in python. Users can enter a message and select the desired option whether to encrypt or decode it. The encode or decoded message would be depicted on GUI window after clicking on the respective button. The Tkinter module would ... Read More

Merging two list of dictionaries in Python

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 18-Oct-2023 11:45:21

591 Views

Problematic data structures include Python lists and dictionaries, these two structures being ordered collections that allow changes, while an unordered dictionary stores values like maps. Dictionaries provide more efficient use by holding key-value pairs; unlike other data types which hold single values at a time as elements in them. In ... Read More

Finding the Maximum and Minimum in a Python set

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 28-Aug-2023 14:45:55

3K+ Views

In this article, the user will see how to calculate the maximum and minimum in a set using Python language. The main feature of the python set is that it contains no duplicates elements, store the elements in unordered form and is also difficult to alter the elements presented in ... Read More

Python program to find volume, surface area and space diagonal of a cuboid

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 28-Aug-2023 14:44:16

1K+ Views

In this article, we will discuss how to compute the volume, surface area, and space diagonal of a cuboid. A Cuboid is a 3D geometric shape that resembles a rectangular box. It is also called a rectangular prism. A cuboid has six rectangular faces with twelve edges. The length, breadth, ... Read More

Python Program to get all Possible Slices of a String for K Number of Slices

Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

Updated on 28-Aug-2023 14:34:08

68 Views

In this article, the user will understand how to get all possible slices of a string for K number of slices in a Python program. Two different examples are depicted in this article. We will employ an iteration approach to accomplish the desired result. In the second example, we will ... Read More

Advertisements