Skip to content

Commit 507c6b5

Browse files
committed
Doc: Add exponentiation example to tutorial introduction
1 parent 282e885 commit 507c6b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/tutorial/introduction.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ For example::
6363
5.0
6464
>>> 8 / 5 # division always returns a floating-point number
6565
1.6
66+
>>> 2 ** 9 #2 raised to the power of 9
67+
4
6668

6769
The integer numbers (e.g. ``2``, ``4``, ``20``) have type :class:`int`,
6870
the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type

0 commit comments

Comments
 (0)