mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
[3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) (#107124)
(cherry picked from commit e59da0c4f2)
Co-authored-by: TommyUnreal <45427816+TommyUnreal@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
parent
18c68ec816
commit
e02ddb33ce
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ Numbers
|
||||||
|
|
||||||
The interpreter acts as a simple calculator: you can type an expression at it
|
The interpreter acts as a simple calculator: you can type an expression at it
|
||||||
and it will write the value. Expression syntax is straightforward: the
|
and it will write the value. Expression syntax is straightforward: the
|
||||||
operators ``+``, ``-``, ``*`` and ``/`` work just like in most other languages
|
operators ``+``, ``-``, ``*`` and ``/`` can be used to perform
|
||||||
(for example, Pascal or C); parentheses (``()``) can be used for grouping.
|
arithmetic; parentheses (``()``) can be used for grouping.
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
>>> 2 + 2
|
>>> 2 + 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue