News for hackers. Stuff that matters.
Re:Python Multiple Assignment Is a Puzzle by yeukhon on Sunday July 27, 2014 @02:55PM (#8093613)
HN is not really for code review, but why are you using try and except here??
Re:Python Multiple Assignment Is a Puzzle by TheLoneWolfling on Sunday July 27, 2014 @05:07PM (#8093972)
Python is designed for it, and it makes it cleaner, so why not?

EAFP: Easier to ask for forgiveness than permission

That being said, just a blanket except is a bad idea.

Re:Python Multiple Assignment Is a Puzzle by zebulanmcranahn on Monday July 28, 2014 @12:51AM (#8095233)
Thanks for the ValueError tip. I added it as well as a TypeError just in case the input comes in as a string. My skills are beginner level at best, tips like yours help a lot!