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
In [5]: "My name is {first_name} {last_name}".format(**d)
134
+
Out[5]: 'My name is Chris Barker'
135
+
136
+
Don't worry too much about the "**" -- we'll get into the details later, but for now, it means, more or less -- pass this whole dict in as a bunch of keyword arguments.
137
+
138
+
139
+
.. _exercise_mailroom_exeptions:
140
+
141
+
Adding Exceptions
142
+
-----------------
143
+
144
+
**After Session05:**
145
+
146
+
* Exceptions:
147
+
148
+
Now that you've learned about Exception handling, you can update your code to handle errors better -- like when a user inputs bad data.
149
+
150
+
* Comprehensions:
151
+
152
+
Can you use comprehensions to clean up your code a bit?
0 commit comments