A String in Python is a sequence of characters like,
strValue = "sample"
or
strValue = 'Sample'
Strings in python can be surrounded by either single quote marks like ‘text’ or by double quote marks “text”. We can also access individual characters in a string. We have curated a list of tutorials to explain all about strings in Python.
Python Strings – FAQ
Remove punctuation from String in Python
In this artilce, we will discuss different ways to remove all punctuation characters from a string in Python. Table Of…
Python: Remove whitespace from the start of string
In this artile, we will disciss two different ways to remove leading whitespace from a string i.e. removing whitespace from…
Convert space delimited string to a list in Python
In this Python tutorial, we will learn how to convert a space delimited string to a list. Table Of Contents…
Check if a String is Empty in Python
In this Python tutorial, we will learn how to check if a string is empty or not. Agenda Check if…
Remove first character from a string in Python
In this article, we will discuss different ways to remove first characters from a string. Remove first character from string…
Python: Capitalize the first letter of each word in a string?
In this article we will discuss 5 different ways to convert first letter of each word in a string to…