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: _sources/functions/func_Str_Cond.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ You can get a copy of part or all of a string using ``str_name[start:end]``.
213
213
214
214
.. note::
215
215
216
-
Use the slice ``[start:end]`` operator to get a slice (substring) from a string. It will return a new string starting at the startand including all the characters up to just before the end (end - 1).
216
+
Use the slice ``[start:end]`` operator to get a slice (substring) from a string. It will return a new string starting at the ``start`` index and include all the characters up to just before the ``end`` (the last character will be from index ``end`` - 1).
217
217
If ``start`` is missing the default is 0 and if ``end`` is missing the default value is the length of the string.
Copy file name to clipboardExpand all lines: pretext/functions/funcWithStrsAndConds.ptx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -324,7 +324,7 @@ main()
324
324
</program>
325
325
</exercise>
326
326
<note>
327
-
<p>Use the slice [start:end] operator to get a slice (substring) from a string. It will return a new string starting at the startand including all the characters up to just before the end (end - 1). If ``start`` is missing the default is 0 and if ``end`` is missing the default value is the length of the string.</p>
327
+
<p>Use the slice <c>[start:end]</c> operator to get a slice (substring) from a string. It will return a new string starting at the <c>start</c> index and include all the characters up to just before the <c>end</c> (the last character will be from index <c>end</c> - 1). If <c>start</c> is missing the default is 0 and if <c>end</c> is missing the default value is the length of the string.</p>
0 commit comments