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.
Both patterns are valid cases of identifiers in Python or C++.
https://www.w3schools.com/python/gloss_python_variable_names.asp
https://www.w3schools.com/cpp/cpp_variables_identifiers.asp
It is ok for the problem to choose to make a pattern be valid or choose to explicitly make something out of scope.....
I tested some of the other already accepted solutions. When I tested, they would return different results for the ambigious cases. I would advocate updating the decription to say these patterns are out of scope. That would remove the ambiguity and leave accepted solutions intact.
I felt the problem description was ambgious on some inputs. I see that for different accepted answers which I tested locally, the accepted answers return different output when given the below ambigous input.
It would improve the problem if the specification had a single well defined output for all valid inputs and the test cases should cover them.
This comment is hidden because it contains spoiler information about the solution