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.
Day 16: Exceptions - String to Integer
Day 16: Exceptions - String to Integer
Sort by
recency
|
997 Discussions
|
Please Login in order to post a comment
If anyone is trying to solve this problem in Python3. Then use this code not the pre-defined code:
For JS this worked:
But for Python I get: Error reading result file.You should use exception handling concepts.
I tried this:
and this:
None of these worked.
For JS this worked:
` None of these worked.
🐍 If your try: except code can't get validation - try to delete 'if name == 'main':'
Probably this if statement triggers an error message reading it as part of "if (...) else") statement.
Graditudes:
https://www.hackerrank.com/karinaxfarias https://www.hackerrank.com/przemyslaw_siek1