From eefba8b165247db5ced3b1ab1b54c23ec4176b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 7 Sep 2019 19:22:55 +0200 Subject: [PATCH] String --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c856e2d..d6aeb9f 100644 --- a/README.md +++ b/README.md @@ -329,8 +329,8 @@ String ### Char ```python - = chr() # Converts int to unicode char. - = ord() # Converts unicode char to int. + = chr() # Converts int to unicode char. + = ord() # Converts unicode char to int. ``` ```python diff --git a/index.html b/index.html index f72e588..1d376a9 100644 --- a/index.html +++ b/index.html @@ -439,8 +439,8 @@ to_exclusive = <range>.stop
  • Also: 'lstrip()', 'rstrip()'.
  • Also: 'lower()', 'upper()', 'capitalize()' and 'title()'.
  • -

    Char

    <str> = chr(<int>)  # Converts int to unicode char.
    -<int> = ord(<str>)  # Converts unicode char to int.
    +

    Char

    <str> = chr(<int>)                           # Converts int to unicode char.
    +<int> = ord(<str>)                           # Converts unicode char to int.
     
    >>> ord('0'), ord('9')