We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I'd also put "except ValueError" here: ValueError is the only that can be raised and should be discarded (given that we discard invalid number relative to the base it's being converted to)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and the Jokes
You are viewing a single comment's thread. Return to all comments →
I'd also put "except ValueError" here: ValueError is the only that can be raised and should be discarded (given that we discard invalid number relative to the base it's being converted to)