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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ Students will know and be able to do the following.
38
38
Function Example
39
39
==================
40
40
41
+
A function is a name for one or more lines of code. You first define a function using the ``def`` keyword and then execute it using ``function_name(arguments)``.
What is the first thing that will be printed when the code below runs?
@@ -86,12 +88,10 @@ Run the Python code below and then answer the following questions.
86
88
- :2: Since the value of b was not specified it defaults to 2 (it was set to 2 as a default in the function definition)
87
89
:.*: What is the default value specified for b in the function definition?
88
90
89
-
Delete the last line of the test function above and run the code again.
90
-
91
91
.. fillintheblank:: fsc_fitb_return_None
92
92
:practice: T
93
93
94
-
What value is returned from a function that doesn't have a return keyword?
94
+
Delete the last line of the ``test`` function above and run the code again. What value is returned from a function that doesn't have a ``return`` keyword?
95
95
96
96
- :None: A function without a return still returns the keyword None
97
97
:.*: What is the last thing that is printed when you run the code above after deleting the return from the test function?
0 commit comments