You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4be6aed
Browse filesBrowse the repository at this point in the historyBrowse files
msgid"In the following examples, input and output are distinguished by the presence or absence of prompts (:term:`>>>` and :term:`...`): to repeat the example, you must type everything after the prompt, when the prompt appears; lines that do not begin with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command."
msgid"You can use the \"Copy\" button (it appears in the upper-right corner when hovering over or tapping a code example), which strips prompts and omits output, to copy and paste the input lines into your interpreter."
msgid"Many of the examples in this manual, even those entered at the interactive prompt, include comments. Comments in Python start with the hash character, ``#``, and extend to the end of the physical line. A comment may appear at the start of a line or following whitespace or code, but not within a string literal. A hash character within a string literal is just a hash character. Since comments are to clarify code and are not interpreted by Python, they may be omitted when typing in examples."
@@ -38,7 +38,10 @@ msgid "# this is the first comment\n"
38
38
"spam = 1 # and this is the second comment\n"
39
39
" # ... and now a third!\n"
40
40
"text = \"# This is not a comment because it's inside quotes.\""
41
-
msgstr""
41
+
msgstr"# this is the first comment\n"
42
+
"spam = 1 # and this is the second comment\n"
43
+
" # ... and now a third!\n"
44
+
"text = \"# This is not a comment because it's inside quotes.\""
42
45
43
46
#:../../tutorial/introduction.rst:41
44
47
msgid"Using Python as a Calculator"
@@ -69,7 +72,7 @@ msgstr ""
69
72
70
73
#:../../tutorial/introduction.rst:67
71
74
msgid"The integer numbers (e.g. ``2``, ``4``, ``20``) have type :class:`int`, the ones with a fractional part (e.g. ``5.0``, ``1.6``) have type :class:`float`. We will see more about numeric types later in the tutorial."
msgid"Division (``/``) always returns a float. To do :term:`floor division` and get an integer result you can use the ``//`` operator; to calculate the remainder you can use ``%``::"
0 commit comments