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
Copy file name to clipboardExpand all lines: _build/basics/types.html
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
next_page:
12
12
url: /guide/01_overview.html
13
13
suffix: .ipynb
14
-
search: type python numbers operations not float mathematical int string example b complex variable numerical types strings performed used data point notation any above possible where standard division important addition operator also center computer boolean component however operators order equal hr three textual variables either logic str nature between error case known exactly floating due logical information true false interperator following code means does multiplication times another defined follows shown decimal atom less different line five operation returned upscaling therefore bool essentially single such particular specific function often text should inverted commas quotation marks hello world greeting run programming exercise note
14
+
search: type python numbers operations not float mathematical int string example b complex variable numerical types strings performed used data point notation any above possible where standard division important addition operator also center computer boolean component however operators order equal hr three textual variables either logic str nature between means line error case known exactly floating due logical information true false should interperator following code does multiplication times another defined follows shown decimal atom less different five operation returned upscaling therefore bool essentially single such particular specific function often text inverted commas quotation marks hello world greeting run programming exercise new
15
15
16
16
comment: "***PROGRAMMATICALLY GENERATED, DO NOT EDIT. SEE ORIGINAL FILES IN /content***"
<divclass=" highlight hl-ipython3"><pre><span></span><spanclass="n">hydrogen_atomic</span><spanclass="o">=</span><spanclass="s2">"The atomic number (Z) of Hydrogen is 1. "</span>
259
+
<divclass=" highlight hl-ipython3"><pre><span></span><spanclass="n">hydrogen_atomic</span><spanclass="o">=</span><spanclass="s2">"The atomic number (Z) of Hydrogen is 1. </span><spanclass="se">\n</span><spanclass="s2">"</span>
<p>In the above example, the number 1 is a component of the string <code>hydrogen</code>.
290
+
<p>In the above example, the number 1 is a component of the string <code>hydrogen</code> and the <code>\n</code> means that a new line should be taken.
290
291
This means that the Python interperator does not recognise it has a number so cannot perform mathematical operations (discussed below) on it.</p>
291
292
<h3id="Operations">Operations<aclass="anchor-link" href="#Operations"></a></h3><p>The textual nature of a string means that is it not possible (nor does it really make sense to) perform mathematical operations on them.
292
293
However, there are some operations that can be performed on a string, that initially, may appear mathematical in nature.
0 commit comments