About 36,900,000 results
Open links in new tab
  1. Python Strings - W3Schools

    Strings in python are surrounded by either single quotation marks, or double quotation marks. 'hello' is the same as "hello". You can display a string literal with the print() function: You can …

  2. Python String - GeeksforGeeks

    Sep 16, 2025 · Slicing is a way to extract a portion of a string by specifying the start and end indexes. The syntax for slicing is string [start:end], where start starting index and end is …

  3. Python Strings (With Examples) - Programiz

    In Python, a string is a sequence of characters. For example, "hello" is a string containing a sequence of characters 'h', 'e', 'l', 'l', and 'o'. We use single quotes or double quotes to …

  4. Strings and Character Data in Python – Real Python

    Dec 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 () …

  5. Python String Module - GeeksforGeeks

    Jul 23, 2025 · The string module provides several constants that represent commonly used sets of characters. These constants can be helpful for validating, cleaning, or manipulating strings …

  6. Working with Strings in Python 3 - GeeksforGeeks

    Jul 15, 2025 · In Python, sequences of characters are referred to as Strings. It used in Python to record text information, such as names. Python strings are "immutable" which means they …

  7. Python Strings - Python Guides

    Strings in Python are sequences of characters used to store and manipulate text. They are defined using single, double, or triple quotes.

  8. string — Common string operations — Python 3.14.1 …

    2 days ago · It takes a format string and an arbitrary set of positional and keyword arguments. It is just a wrapper that calls vformat(). Changed in version 3.7: A format string argument is now …

  9. Python String: Working With Text • Python Land Tutorial

    Nov 2, 2025 · Strings are not just a Python thing. It’s a well-known term in computer science and means the same thing in most other languages. Now that we know a string, we’ll look at how …

  10. Python Strings: An In-Depth Tutorial (55+ Code Examples)

    Apr 24, 2025 · What Are Python Strings? A string is an object that contains a sequence of characters. A character is a string of length one. A single character is also a string in Python. …