๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_ref_string.asp
Python String Methods
Remove List Duplicates Reverse a String Add Two Numbers ยท Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... Python has a set of built-in methods that you can use on strings.
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ stdtypes.html
Built-in Types โ€” Python 3.14.3 documentation
1 week ago - The methods that add, subtract, or rearrange their members in place, and donโ€™t return a specific item, never return the collection instance itself but None. Some operations are supported by several object types; in particular, practically all objects can be compared for equality, tested for truth value, and converted to a string ...
Discussions

Hard time understanding string formatting in Python
Might be worth noting that the % operator for string formatting is deprecated . If you want to learn the preferred way of doing things, look into the format method instead. Using % and .format() for great good! has a comparison of the 'old' (% style) and 'new' (format) approaches. The new method basically makes caring about %s vs %d irrelevant. What you said is essentially right though, %s just converts what you pass it to a str, as the docs say : 's' - String (converts any Python object using str()). If you try str(5) in IDLE, you'll notice you get the string '5' back. That essentially means you can use %s for anything that will convert with str(x). Using %d conveys your intentions more clearly, but %s will still technically work. Being clear with what your code is trying to do is always a good thing though. More on reddit.com
๐ŸŒ r/learnprogramming
11
4
February 2, 2018
String concatenation in Python, which one is the best practice?
I have decided to overwrite my comments. More on reddit.com
๐ŸŒ r/learnpython
7
1
October 26, 2018
Why doesn't method chaining work in Python?
In Python, methods or functions which have side effects and modify the object in place (like append() or sort()) explicitly return None. This is to prevent any confusion with the functional style (like sorted()), in which return values are newly allocated objects and the original is unchanged. In this case, a "chained" version would just be test = test + [1] + [2] More on reddit.com
๐ŸŒ r/Python
19
0
September 1, 2015
Hello, is there a way to mutate strings in Python?
As a technical issue, you cannot "mutate" strings (change them in-place), so string operations always must return a new string if the result differs from the original. And besides the str.replace() method mentioned, there is str.translate() for doing multiple character remappings in one pass, and the codecs module if you really need more flexibility in customized mappings. More on reddit.com
๐ŸŒ r/learnpython
8
3
December 20, 2020
๐ŸŒ
Scaler
scaler.com โ€บ topics โ€บ python โ€บ string-methods-python
Python String Methods - Scaler Topics
September 17, 2021 - Learn about string methods Python by Scaler Topics. Python string methods are built-in sets of methods that can be used on strings.
๐ŸŒ
Accreteinfo
accreteinfo.com โ€บ home โ€บ web development โ€บ 10 must-know python string functions
10 Must-Know Python String Functions
April 14, 2023 - In this article, weโ€™ll discuss 10 must-know string functions in Python that can make string handling easy and efficient. The upper() method converts all the characters in a string to uppercase. This method does not modify the original string, but returns a new string with all the characters ...
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ string.html
string โ€” Common string operations
In addition, the Formatter defines a number of methods that are intended to be replaced by subclasses: ... Loop over the format_string and return an iterable of tuples (literal_text, field_name, format_spec, conversion).
๐ŸŒ
LearnPython.com
learnpython.com โ€บ blog โ€บ python-string-methods
An Overview of Python String Methods | LearnPython.com
This includes common text operations like searching and replacing text, removing whitespace, or counting characters and words. Collectively, these functions are called Python string methods.
Find elsewhere
๐ŸŒ
Internshala
trainings.internshala.com โ€บ home โ€บ programming โ€บ python โ€บ python string functions with examples
Python String Functions With Examples
May 16, 2023 - Python has plenty of built-in string methods for modifying and analyzing strings. Python has 51 string functions, including methods to locate, replace, divide, join, format, and compare strings, among others.
๐ŸŒ
Programming Historian
programminghistorian.org โ€บ en โ€บ lessons โ€บ manipulating-strings-in-python
Manipulating Strings in Python | Programming Historian
July 17, 2012 - In addition to operators, Python comes pre-installed with dozens of string methods that allow you to do things to strings. Used alone or in combination, these methods can do just about anything you can imagine to strings. The good news is that you can reference a list of String Methods on the ...
๐ŸŒ
Real Python
realpython.com โ€บ python-strings
Strings and Character Data in Python โ€“ Real Python
December 22, 2024 - In this tutorial, you'll learn how to use Python's rich set of operators and functions for working with strings. You'll cover the basics of creating strings using literals and the str() function, applying string methods, using operators and built-in functions with strings, and more!
๐ŸŒ
Dspmuranchi
dspmuranchi.ac.in โ€บ pdf โ€บ Blog โ€บ Python String and python string methods.pdf pdf
Python String and python String methods
A Python string is a sequence of characters. There is a built-in class โ€˜strโ€™ for ... The fillchar argument is optional. If it's not provided, space is taken as default ... The casefold() method removes all case distinctions present in a string.
๐ŸŒ
University of Toronto
cs.toronto.edu โ€บ ~guerzhoy โ€บ c4m_website_archive โ€บ workshops โ€บ W3 โ€บ ListMethodsStringMethods.html
List Methods and String Methods
Notice that the string s hasn't changed. But calling the method upper on string 's', returned the string 'HELLO' which we assigned to variable t.
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ home โ€บ python โ€บ python strings
Python Strings
February 21, 2009 - Learn about strings in Python, including string creation, methods, and operations to manipulate text effectively.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-string-methods
Python String Methods - GeeksforGeeks
July 23, 2025 - Python string methods is a collection of in-built Python functions that operates on strings.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_string_join.asp
Python String join() Method
Remove List Duplicates Reverse a String Add Two Numbers ยท Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Bootcamp Python Certificate Python Training ... The join() method takes all items in an iterable and joins them into one string.
๐ŸŒ
CS50
cs50.harvard.edu โ€บ python โ€บ shorts โ€บ string_methods
String Methods - CS50's Introduction to Programming with Python
Interested in a verified certificate or a professional certificate ยท David J. Malan malan@harvard.edu Facebook GitHub Instagram LinkedIn Reddit Threads Twitter
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ 16+ essential python string methods you should know
Most Essential Python String Methods with Examples
October 30, 2025 - Python string methods give you direct control over how text behaves in your programs. They let you clean, modify, and format strings without writing extra logic. From case conversion and whitespace removal to searching, splitting, and validation, ...
๐ŸŒ
Pythonspot
pythonspot.com โ€บ string-methods
string methods python - Python Tutorial
Methods can be applied to Python strings, where a string is somet text between quotes.
๐ŸŒ
Pydantic
docs.pydantic.dev โ€บ latest โ€บ concepts โ€บ models
Models - Pydantic Validation
Pydantic can validate data in three different modes: Python, JSON and strings. ... The __init__() model constructor. Field values must be provided using keyword arguments. model_validate(): data can be provided either as a dictionary, or as a model instance (by default, instances are assumed to be valid; see the revalidate_instances setting). Arbitrary objects can also be provided if explicitly enabled. The JSON and strings modes can be used with dedicated methods:
๐ŸŒ
LaunchCode
education.launchcode.org โ€บ data-analysis โ€บ chapters โ€บ strings โ€บ string-methods.html
8.5. String Methods โ€” Data Analysis documentation
The str data type includes a special group of operations, called methods, that we can use to make routine tasks easier. A method performs a specific action on the data within an object. For strings, the methods usually create a new string from the characters of the original. Python provides ...