From 9c3aa51ee446e72207213d1d52a41f85537b590a Mon Sep 17 00:00:00 2001 From: Adi Date: Fri, 18 Jan 2019 16:54:13 -0800 Subject: [PATCH] adding text to correct the sentence (#33972) Ord() and Chr() exists in both python 2.7 as well as python 3. The sentence was incorrect to state its only available in Python 3 --- guide/english/python/ord-function/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/python/ord-function/index.md b/guide/english/python/ord-function/index.md index d2e2602686..73e74a834a 100644 --- a/guide/english/python/ord-function/index.md +++ b/guide/english/python/ord-function/index.md @@ -4,7 +4,7 @@ title: Python Ord Function ## Ord function -`ord()` is a built-in function in Python 3, to convert the string representing one Unicode character into integer +`ord()` is a built-in function in Python 2.7 & 3, to convert the string representing one Unicode character into integer representing the Unicode code of the character. #### Examples: @@ -17,7 +17,7 @@ representing the Unicode code of the character. ## chr function -`chr()` is a built-in function in Python 3, to convert the integer +`chr()` is a built-in function in Python 2.7 & 3, to convert the integer representing the Unicode code into a string representing a corresponding character. #### Examples: