Skip to content

Commit

Permalink
Fixes from Margaret
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarer committed Dec 30, 2024
1 parent 4549a14 commit 3a179b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _sources/conditional/tryExcept.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ Handling an exception with a ``try`` statement is called
an exception gives you a chance to fix the problem, or try again, or at
least end the program gracefully.

.. fillintheblank:: cndtnl-try-fitb-meaning
.. fillintheblank:: cndtnl-try-fitb-meaning-v2
:practice: T

The ``try/except`` feature is used to catch ________.
The ``try/except`` feature is used to catch an ________.

- :[Ee]xception: When using try/except you are trying to catch an exception and give the computer a different way to handle it.
:.*: Try again.
Expand Down
6 changes: 3 additions & 3 deletions _sources/lists/listAsArgument.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ The slice operator creates a new list and the assignment makes
``t`` refer to it, but none of that has any effect on the list
that was passed as an argument.

.. mchoice:: listArg_MC_slice
.. mchoice:: listArg_MC_slice_v2
:practice: T
:answer_a: True
:answer_b: False
:correct: a
:feedback_a: The slice operator creates a new list called "t", but that will not affect the list it was passed.
:feedback_b: The slice operator creates a new list called "t", so it will not modify the original list.
:feedback_a: The slice operator creates a new list called "lst", but that will not affect the list it was passed.
:feedback_b: The slice operator creates a new list called "lst", so it will not modify the original list.

True or False. The following code block will **not** remove the first element from the list argument.

Expand Down
4 changes: 2 additions & 2 deletions _sources/strings/parsing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ we will use string slicing to extract the portion of the string which we
are looking for.

.. codelens:: strParsing
:question: What is the value of sppos after the line with the red arrow executes?
:question: What is the value of spacepos after the line with the red arrow executes?
:breakline: 4
:feedback: The second argument in find() is the start position.
:correct: globals.sppos
:correct: globals.spacepos

data = 'From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008'
atpos = data.find('@')
Expand Down

0 comments on commit 3a179b9

Please sign in to comment.