Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi all. My code is written in Python passes all tests. On my workstation there are no errors. Does anyone know why Codewars I get this error:
Traceback:
in
in increment_string
ValueError: invalid literal for int() with base 10: '1h785369=v%97758225856s28985409geMYX+V36b07EP{ 620900899'
I think that error occurs because of this place in the code:
if s[i].isdigit():
num = int(s[i:]) + 1
null = "
if len(str(num)) < len(s[i:]):
for j in range(len(s[i:]) - len(str(num))):
null = null + '0'
num = s[:i] + null + str(num)
return num
This comment is hidden because it contains spoiler information about the solution