From e04f1045d0da9c34ff989b2ed1fca6a501b78e83 Mon Sep 17 00:00:00 2001 From: Roppon Picha Date: Wed, 7 Nov 2018 20:47:43 +0700 Subject: [PATCH] added intro sentence. corrected spelling. (#21207) --- guide/english/python/data-structures/integers/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/english/python/data-structures/integers/index.md b/guide/english/python/data-structures/integers/index.md index 6682e11bd2..9a06ce1c7e 100644 --- a/guide/english/python/data-structures/integers/index.md +++ b/guide/english/python/data-structures/integers/index.md @@ -1,9 +1,9 @@ --- title: Python Integers --- -The theoretical domain for integers in python is negative infinity to infinity. In practice, integer values are limited by the amount of available memory. +Integers are whole numbers with no decimal point. They include negative, zero, and positive numbers. The theoretical domain for integers in python is negative infinity to infinity. In practice, integer values are limited by the amount of available memory. -In Python 2, there was a distinction between **`int`**, numbers that fit in a 32 or 64 bit _C long_, and **`long`**, numbers limited by available memory. Python 3 unified the two types into just **`int`**, more info in PEP 237. +In Python 2, there was a distinction between **`int`**, numbers that fit in a 32 or 64 bit _C long_, and **`long`**, numbers limited by available memory. Python 3 unified the two types into just **`int`** (more info in PEP 237). **`int` creation using integer literals** @@ -23,7 +23,7 @@ Numeric literals do not contain a sign, however creating negative _integer objec >>> type(-1234567890) -Likewise, positive integer objects can be created by prefixing a unary `+` (plus) operator with no space before the digits. Usually `+` is ommited: +Likewise, positive integer objects can be created by prefixing a unary `+` (plus) operator with no space before the digits. Usually `+` is omitted: >>> +1234 1234 @@ -144,4 +144,4 @@ If a prefixed string and base 0 is used, the created integer object will use the >>> int('0b100', 0) 4 >>> int('0o100', 0) - 64 \ No newline at end of file + 64