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
Consider adding an if, else list comprehension as well (question came up from participants)
16_Answers
For each comprehension challenge question, we may want to reinitialize or use new variable names to be used in the answers so the solutions can be created without using the variable names that were already run and set using a for loop (even if the code was incorrect, you would get the correct answer if you reuse the variables)
UPR_Workbook
Import statements for 'os' and 'csv' are easy to miss as they fall right under the long introduction text. May want to move these down to Part B where
'csv' module is never called, so there is no need to import it
Part A1
The parameter name 'file_name' in section 1.5 is different from the originally used variable 'filename' (no _) used in section 1.1, which could lead to some confusion. We may want to redefine the function parameter as 'filename' to keep it consistent
Part A2
In section 2.2, the instructions list the wrong variable names. The 3 new lists should be 'accept_recs', 'examine_recs', 'reject_recs'
Part A3
Might be a little out of scope for this workshop, but we could use this part as a good opportunity to introduce Regular Expressions (regex), and demonstrate what a solution using regex might look like.
*Same comment throughout the notebook. For clarity, may want to use the actual variable name in the markdown
We do not specify what strings to use for the 'decision_type' variable. We may want to make that explicit
The text was updated successfully, but these errors were encountered:
16_Comprehensions
16_Answers
UPR_Workbook
Part A1
Part A2
Part A3
*Same comment throughout the notebook. For clarity, may want to use the actual variable name in the markdown
The text was updated successfully, but these errors were encountered: