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

    3 days ago · The Formatter class in the string module allows you to create and customize your own string formatting behaviors using the same implementation as the built-in format() method.

  2. 7. Input and Output — Python 3.14.3 documentation

    3 days ago · There are several ways to format output. To use formatted string literals, begin a string with f or F before the opening quotation mark or triple quotation mark. Inside this string, you can write a …

  3. Built-in Types — Python 3.14.3 documentation

    3 days ago · An f-string (formally a formatted string literal) is a string literal that is prefixed with f or F. This type of string literal allows embedding the results of arbitrary Python expressions within …

  4. Text Processing Services — Python 3.14.3 documentation

    3 days ago · The modules described in this chapter provide a wide range of string manipulation operations and other text processing services. The codecs module described under Binary Data …

  5. 2. Lexical analysis — Python 3.14.3 documentation

    3 days ago · Expressions in formatted string literals are treated like regular Python expressions. Each expression is evaluated in the context where the formatted string literal appears, in order from left to …

  6. datetime — Basic date and time types — Python 3.14.3 documentation

    date, datetime, and time objects all support a strftime(format) method, to create a string representing the time under the control of an explicit format string.

  7. re — Regular expression operations — Python 3.14.3 documentation

    3 days ago · A regular expression (or RE) specifies a set of strings that matches it; the functions in this module let you check if a particular string matches a given regular expression (or if a given regular …

  8. 3. An Informal Introduction to Python

    3 days ago · In the Python shell, the string definition and output string can look different. The print() function produces a more readable output, by omitting the enclosing quotes and by printing escaped …

  9. Built-in Functions — Python 3.14.3 documentation

    3 days ago · If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console.

  10. 6. Expressions — Python 3.14.3 documentation

    3 days ago · The syntax for string formatting is described in the Python Library Reference, section printf-style String Formatting. The modulo operation can be customized using the special __mod__() and …