Sai Mohan Pulamolu

Sai Mohan Pulamolu

5 Articles Published

Articles by Sai Mohan Pulamolu

5 articles

Opening Links Using Selenium in Python

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 09-Aug-2023 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 and etc. In this article, we will learn various methods to open links in Selenium using Python. Prerequisites Before we get started just 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 to download ...

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

Python - Odd Frequency Characters

Sai Mohan Pulamolu
Sai Mohan Pulamolu
Updated on 09-Aug-2023 559 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 Approach To get the odd frequency elements, We will iterate through the entire string, and for each character in the string, we will increment the character count in the dictionary. At the end of the iteration, we will ...

Read More

Iterate Through List of Dictionaries in Python

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

In this article, we will learn various methods to iterate through the 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 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 retrieve the keys, values, ...

Read More

Iterate Over Words of a String in Python

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

In this article, we will learn various methods to iterate over words of a string in Python. Understanding how to access and manipulate words in a string is a very important skill for any Python programmer, as it allows for efficient text processing and analysis. We will discuss the problem statement and provide solutions using different approaches in Python. Using the 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 ...

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