Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] gh-107017: Analolgy to Pascal and C replaced. (GH-107025) #107124

Merged
merged 3 commits into from
Jul 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

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
operators ``+``, ``-``, ``*`` and ``/`` work just like in most other languages
(for example, Pascal or C); parentheses (``()``) can be used for grouping.
operators ``+``, ``-``, ``*`` and ``/`` can be used to perform
arithmetic; parentheses (``()``) can be used for grouping.
For example::

>>> 2 + 2
Expand Down Expand Up @@ -427,7 +427,7 @@
>>> cubes
[1, 8, 27, 64, 125]

You can also add new items at the end of the list, by using

Check warning on line 430 in Doc/tutorial/introduction.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:meth reference target not found: list.append
the :meth:`~list.append` *method* (we will see more about methods later)::

>>> cubes.append(216) # add the cube of 6
Expand Down
Loading