Sai Mohan Pulamolu

Sai Mohan Pulamolu

5 Articles Published

Articles by Sai Mohan Pulamolu

5 articles

Python - Odd Frequency Characters

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 27-Mar-2026 575 Views

In Python, fetching characters with odd frequencies from a given string can be a very common task in text processing and data analysis. In this article, we will learn various methods to fetch the odd frequency characters of a string in Python. Using a Dictionary Dictionaries are very convenient when there is a need to keep track of the frequencies of elements. We can manually count each character's occurrences and filter those with odd frequencies. Approach To get the odd frequency elements, we will iterate through the entire string, and for each character in the string, ...

Read More

Opening Links Using Selenium in Python

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 27-Mar-2026 3K+ Views

When working with automation tasks, opening links programmatically is a very common requirement. Selenium, a popular web testing framework, provides powerful tools to handle web pages and perform various actions like opening links. In this article, we will learn various methods to open links in Selenium using Python. Prerequisites Before we get started, make sure that you have the following software installed: Python: Install Python, if you haven't already. Selenium: Install Selenium by running pip install selenium in your command prompt. Web Driver: Selenium requires a web driver to interface with the chosen browser. You need ...

Read More

Iterate Through List of Dictionaries in Python

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 27-Mar-2026 11K+ Views

In this article, we will learn various methods to iterate through a list of dictionaries in Python. When working with data in Python, it is very common to encounter scenarios where you have a list of dictionaries. Each dictionary represents an individual data entry, and you need to perform operations or extract specific information from these dictionaries. Using a For Loop and Dictionary Access Methods The most straightforward approach is to use a for loop to iterate through each dictionary in the list. Inside the loop, we can use dictionary access methods like keys(), values(), or items() to ...

Read More

Iterate Over Words of a String in Python

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 27-Mar-2026 2K+ Views

In Python, iterating over words in a string is a fundamental skill for text processing and analysis. This article explores various methods to split strings into words and iterate through them efficiently. Using split() Method Syntax string.split(separator, maxsplit) The split() method takes two optional parameters: separator and maxsplit. By default, the separator is any whitespace, and maxsplit is −1, which means the method will split the string at every occurrence of the separator. Example text = "Welcome to tutorials point." words = text.split() print(words) ['Welcome', 'to', 'tutorials', 'point.'] ...

Read More

Removing Odd Elements From List in Python

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 09-Aug-2023 6K+ Views

In Python, lists are a versatile data structure that allows you to store and manipulate collections of items. There may be use cases where you need to remove specific elements from a list based on certain criteria. In this tutorial, we will learn how to remove odd elements from a list in Python. Using a For Loop and remove() method The approach is to use a for loop to iterate through each element of the list and check if the element is odd or even and then use the remove() method to remove it from the list. Syntax remove() remove(item) ...

Read More
Showing 1–5 of 5 articles
« Prev 1 Next »
Advertisements