Mrudgandha Kulkarni

Mrudgandha Kulkarni

134 Articles Published

Articles by Mrudgandha Kulkarni

Page 2 of 14

Python script to generate dotted text from any image

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 11-Aug-2023 679 Views

In the digital age, manipulating images and creating artistic effects has become a common practice. One intriguing effect is the generation of dotted text from an image. This process involves converting the pixels of an image into a pattern of dots, creating an intriguing visual representation of the text. In this blog post, we will explore how to create a Python script that can generate dotted text from any given image. By leveraging the power of Python and some essential libraries, we can automate the process and easily generate stunning dotted text effects. Understanding Dotted Text Before we jump into ...

Read More

Python Script to create random jokes using pyjokes

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 11-Aug-2023 2K+ Views

Are you looking to add some humor to your Python scripts or applications? Whether you're building a chatbot, developing a command-line tool, or simply want to entertain yourself with a random joke, the pyjokes library is here to help. With pyjokes, you can effortlessly generate jokes in various categories and customize them to suit your preferences. In this blog post, we will explore how to use the pyjokes library to create random jokes in Python. We'll cover the installation process, generating jokes from different categories, customizing the jokes, displaying them in console applications or web pages, and handling any potential ...

Read More

Python script that is executed every 5 minutes

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 12K+ Views

Automation and task scheduling play a crucial role in streamlining repetitive tasks in software development. Imagine having a Python script that needs to be executed every 5 minutes, such as fetching data from an API, performing data processing, or sending regular updates. Manually running the script at such frequent intervals can be time-consuming and prone to errors. That's where task scheduling comes in. In this blog post, we will explore how to schedule the execution of a Python script every 5 minutes, ensuring that it runs automatically without requiring manual intervention. We will discuss different approaches and libraries that can ...

Read More

Python regex - Check whether the input is Floating point number or not

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 2K+ Views

Floating point numbers play a crucial role in various programming tasks, from mathematical computations to data analysis. However, when working with user input or data from external sources, it becomes essential to validate whether the input is a valid floating point number or not. Python provides powerful tools to tackle this challenge, and one such tool is regular expressions. In this article, we will explore how to use regular expressions in Python to check whether the input is a floating point number or not. Regular expressions, commonly known as regex, offer a concise and flexible way to define patterns and ...

Read More

Python Raw Strings

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 1K+ Views

When working with strings in Python, you might have come across situations where special characters, escape sequences, or backslashes caused unexpected behavior or required extra attention. This is where raw strings come to the rescue. Raw strings, denoted by the 'r' prefix, offer a convenient way to handle strings without interpreting escape sequences or special characters. They are particularly useful when dealing with regular expressions, file paths, and any scenario that involves literal string representations. In this article, we will explore the concept of raw strings in Python and understand how they differ from regular strings. We will delve into ...

Read More

Python program to uppercase the given characters

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 303 Views

Text processing often requires manipulating the case of characters in a string. One common task is converting lowercase characters to uppercase. In Python, there are built-in functions and methods that simplify this task. In this article, we will explore how to write a Python program to convert characters to uppercase. Uppercasing characters is essential for various applications, such as data cleaning, text analysis, and string matching. By converting characters to uppercase, we can ensure uniformity, improve readability, and enable effective comparison and matching operations. In this article, we will discuss the problem statement, explore the approach and algorithm to uppercase ...

Read More

Python program to update a dictionary with the values from a dictionary list

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 4K+ Views

In Python, dictionaries are powerful data structures that allow us to store and manipulate key-value pairs. They provide a convenient way to organize and access data based on unique keys. Often, we encounter situations where we need to update a dictionary with values from another dictionary list. This means taking the values from multiple dictionaries and merging them into a single dictionary, either by adding new key-value pairs or updating existing ones. In this article, we will explore different approaches to tackle this task in Python. We will discuss three methods: using a for loop and the update() method, utilizing ...

Read More

Python Program to test if the String only Numbers and Alphabets

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 744 Views

When working with strings in Python, it is often necessary to validate whether a string contains only numbers and alphabets or if it includes other special characters. String validation is crucial in various scenarios such as input validation, data processing, and filtering. In this article, we will explore a Python program to test if a given string consists of only alphanumeric characters. We will discuss the criteria for a valid string, provide examples of valid and invalid strings, and present an efficient approach to solve this problem using built-in string methods. Understanding the Problem Before we dive into solving the ...

Read More

Python program to swap two elements in a list

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 4K+ Views

In Python programming, lists are a versatile and commonly used data structure. They allow us to store and manipulate collections of elements efficiently. At times, we may need to swap the positions of two elements within a list, either to reorganize the list or to perform specific operations. This blog post explores a Python program that swaps two elements in a list. We will discuss the problem, outline an approach to solve it, and provide a step-by-step algorithm. By understanding and implementing this program, you will gain the ability to manipulate lists and change the arrangement of elements according to ...

Read More

Python program to test for Non-neighbours in List

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 10-Aug-2023 266 Views

When working with lists in Python, it can be valuable to identify non-neighbors, which are elements that are not adjacent to each other. Whether it's finding elements that are at least a certain distance apart or identifying gaps in a sequence, the ability to test for non-neighbors can provide valuable insights and facilitate specific operations. In this article, we will explore a Python program that tests for non-neighbors in a list. We will discuss the importance of identifying non-neighbors in various scenarios and provide a step-by-step explanation of the approach and algorithm used. Understanding the Problem Before we dive into ...

Read More
Showing 11–20 of 134 articles
« Prev 1 2 3 4 5 14 Next »
Advertisements