diff --git a/_sources/conditional/tryExcept.rst b/_sources/conditional/tryExcept.rst index 8f9cc753..3979d3bf 100644 --- a/_sources/conditional/tryExcept.rst +++ b/_sources/conditional/tryExcept.rst @@ -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. diff --git a/_sources/lists/listAsArgument.rst b/_sources/lists/listAsArgument.rst index 6ac1b817..1f4f8069 100644 --- a/_sources/lists/listAsArgument.rst +++ b/_sources/lists/listAsArgument.rst @@ -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. diff --git a/_sources/strings/parsing.rst b/_sources/strings/parsing.rst index ff780ca0..d8c11ce4 100644 --- a/_sources/strings/parsing.rst +++ b/_sources/strings/parsing.rst @@ -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('@')