Skip to content

Commit

Permalink
Add num_convert.py to the starter code, chapter 10. It's absence watc…
Browse files Browse the repository at this point in the history
…h causing confusion.
  • Loading branch information
mikeckennedy committed Oct 9, 2020
1 parent dcdc7db commit 5346e7c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def try_int(text) -> int:
try:
return int(text)
except:
return 0

0 comments on commit 5346e7c

Please sign in to comment.