Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

You really should change "except" to "except ValueError" there.

Also, I suggest first converting A to a set. Just "A = set(A)" would work.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: