About 89,800 results
Open links in new tab
  1. string — Common string operations — Python 3.14.3 documentation

    4 days ago · The feature described here was introduced in Python 2.4; a simple templating method based upon regular expressions. It predates str.format(), formatted string literals, and template string …

  2. Python str () Function - W3Schools.com

    Definition and Usage The str() function converts the specified value into a string.

  3. Python str () function - GeeksforGeeks

    Jul 15, 2025 · The str () function in Python is an in-built function that takes an object as input and returns its string representation. It can be used to convert various data types into strings, which can then be …

  4. str | Python’s Built-in Data Types – Real Python

    The built-in str data type represents sequences of characters and is used to manipulate textual data. Python strings are immutable sequences, meaning once defined, they can’t be changed.

  5. Python str () (With Examples) - Programiz

    In this tutorial, we will learn about Python str () in detail with the help of examples.

  6. Python str () Function - AskPython

    Jul 12, 2022 · When we call the str () function with an object argument, it calls the __str__ () function of the object. So, we can implement the __str__ () function for the object, which should return a string.

  7. Python str () Function – How to Convert to a String

    Apr 4, 2023 · You’ve seen that the str() function is instrumental in converting non-string objects and primitive data types to strings. You might be wondering if you can use the str() function to convert …

  8. Python str Function - Complete Guide - ZetCode

    Apr 11, 2025 · This comprehensive guide explores Python's str function, which converts objects to their string representations. We'll cover basic conversion, custom string representations, formatting, and …

  9. Python str () Function - Online Tutorials Library

    Learn how to use the Python str () function to convert different data types into strings. Explore examples and understand its applications in Python programming.

  10. str — Python Reference (The Right Way) 0.1 documentation

    str ¶ The items of a string are characters. There is no separate character type; a character is represented by a string of one item. Characters represent (at least) 8-bit bytes. The built-in functions …