(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/string-catenation.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/literals.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/integers.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 2.4.2 String literal concatenation Up: 2.4 Literals Next: 2.4.4 Integer and long
2.4.3 Numeric literals
There are four types of numeric literals: plain integers, long integers, floating point numbers, and imaginary numbers. There are no complex literals (complex numbers can be formed by adding a real number and an imaginary number).
Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the unary operator `-' and the literal 1.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/string-catenation.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/literals.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/integers.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 2.4.2 String literal concatenation Up: 2.4 Literals Next: 2.4.4 Integer and long
See About this document... for information on suggesting changes.