Skip to content

Tag Archives: python-string

In this article, we will discuss how to format string Python. String formatting is the process of infusing things in the string dynamically and presenting… Read More
Prerequisite: Regular Expression in Python Given a string, we have to find whether the string contains any letters, numbers, underscores, and dashes or not. It… Read More
We know how binary value for numbers look like. For example, the binary value for 10 (Number Ten) is 1010 (binary value). Sometimes it is… Read More
Given a string in Python. The task is to check whether the string has at least one letter(character) and one number. Return “True” if the… Read More
ValueError is encountered when we pass an inappropriate argument type. Here, we are talking about the ValueError caused by passing an incorrect argument to the… Read More
f-string stands for formatted string. It had come up by Python Version 3.6 and rapidly used to do easy formatting on strings. F-string is a… Read More
Python defines type conversion functions to directly convert one data type to another which is useful in day to day and competitive programming. A string… Read More
The Python string data type is a sequence made up of one or more individual characters that could consist of letters, numbers, whitespace characters, or… Read More
Python defines type conversion functions to directly convert one data type to another. This article is aimed at providing information about converting an object to… Read More
Python defines type conversion functions to directly convert one data type to another. This article is aimed at providing the information about converting decimal to… Read More
Text Alignment in Python is useful for printing out clean formatted output. Some times the data to be printed varies in length which makes it… Read More
Python str() function returns the string version of the object. Syntax: str(object, encoding=’utf-8?, errors=’strict’) Parameters: object: The object whose string representation is to be returned.… Read More
In Python, a string can be converted into an integer using the following methods : Method 1: Using built-in int() function:  If your string contains… Read More
Prerequisites: Python – format() function str.format() is one of the string formatting methods in Python3, which allows multiple substitutions and value formatting. This method lets… Read More
The Base64 encoding is used to convert bytes that have binary or text data into ASCII characters. Encoding prevents the data from getting corrupted when… Read More

Start Your Coding Journey Now!