Skip to content

Commit 3bcec58

Browse files
committed
fixes
1 parent 0ab4254 commit 3bcec58

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

_sources/functions/func_Str_Cond.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ You can get a copy of part or all of a string using ``str_name[start:end]``.
213213

214214
.. note::
215215

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 and 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).
217217
If ``start`` is missing the default is 0 and if ``end`` is missing the default value is the length of the string.
218218

219219
.. fillintheblank:: fsc_fitb_three_char_slice

pretext/functions/funcWithStrsAndConds.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ main()
324324
</program>
325325
</exercise>
326326
<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 start and 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>
328328
</note>
329329
<exercise label="fsc_fitb_three_char_slice">
330330
<statement>

0 commit comments

Comments
 (0)