Convert String to Tuple in Python

Convert String to Tuple in Python

In Python, a tuple is a way to store a group of items together like a list, but you can’t change it once it’s created. Sometimes, you might get your data as a string that looks like a tuple. But to use it as a real tuple in Python, you need to convert it first. … Read more >>

How to Convert String to Path in Python

Convert String to Path in Python

In Python, you often deal with file or folder paths, especially when you’re reading from or writing to files. Instead of treating these paths as plain strings, you can convert them into Path objects using Python’s built-in tools. This makes it easier to work with paths, like joining folders, checking if a file exists, or … Read more >>

Convert String to Array in Python

String to Array in Python

It is very usual to work on strings when you are a Python developer. When I was working on a game development project, I wanted to convert the game leaves, which were in the form of strings, into an array in Python. In this article, I will explain some important methods to convert string to … Read more >>

Remove the Last Character from a String in TypeScript

Remove the Last Character from a String in TypeScript

In this tutorial, I will explain how to remove the last character from a string in TypeScript using various methods. We will explore different approaches, including using the slice() method, the substring() method, and the replace() method. Remove the Last Character from a String in TypeScript I will now show you how to remove the … Read more >>

Remove a Substring from a String in TypeScript

Remove a Substring from a String in TypeScript

I recently got a requirement to modify some strings in TypeScript. The task was to clean up user input by removing specific substrings from their entries. After some research and experimentation, I found several effective methods to achieve this in TypeScript. In this tutorial, I will explain how to remove a substring from a string … Read more >>

Replace Characters in a String Using TypeScript

Replace Characters in a String Using TypeScript

In this tutorial, I will explain how to replace characters in a string using TypeScript. As a developer, you might get a requirement to modify strings by replacing specific characters or substrings. TypeScript provides several methods to do this. Replace Characters in a String Using TypeScript Now, let me show you how to replace characters … Read more >>

QSpinBox Widget in PyQt6

QSpinBox Widget in PyQt6

In this article, I am going to explain all about the PyQt6 QSpinBox Widget that you need to know. A QSpinBox widget allows users to select a number value by clicking up/down arrows or using keyboard arrows to increase/decrease the value. It is perfect when you need users to input numeric values within a specific … Read more >>

Check if a String is Null or Empty in TypeScript

Check if a String is Null or Empty in TypeScript

As a developer, you often need to check if a string is null or empty in TypeScript. In this tutorial, I will explain how to check if a string is null or empty in TypeScript. When working with strings in TypeScript, it’s common to determine whether a string is null, undefined, or an empty string. … Read more >>

QCheckBox Widget in PyQt6

QCheckBox Widget in PyQt6

There are various ways to create a Check Box in PyQt6, Usually, we use Check Box in forms, settings panels, multi-selection UIs, etc to select multiple options from a given group. In this tutorial, I am going to explain to you various methods of creating a Check Box in PyQt6. I will also explain how … Read more >>

QRadioButton Widget in PyQt6

Create QRadioButton Widget in PyQt6

Radio buttons are common widgets that we use in our UI applications which allow users to select an option from a group. There are pretty easy and simple methods to create Radio buttons in PyQt6. In this article, I will show you a couple of methods to create Radio buttons in PyQt6 and also about … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.