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.
I am a native speaker, and I made the same mistake!
Ah, thank you. Not a native speaker
not an issue, your spelling is incorrect:
forty
(as you can actually see in the links you provided... :p )The solution sorts the numbers 804, 844 and 846 as follows:
[844, 846, 804]
.My solution sorts it as:
[804, 844, 846]
under the following spelling (which as far as I can see is correct):['eight hundred four', 'eight hundred fourty-four', 'eight hundred fourty-six']
What spelling is used in the example? I use the following examples:
https://www.grammarbook.com/numbers/numbers.asp
https://www.ego4u.com/en/cram-up/vocabulary/numbers/generator (American English)
This comment is hidden because it contains spoiler information about the solution
If you use regular expressions, are you escaping them properly? Also, X should equal Y means X is the value you return and Y is the expected one (sorry if that sound obvious, some people got that wrong and sometimes those values were flipped, not in this case).
This comment is hidden because it contains spoiler information about the solution
Could it be related to the Python version you're using? For instance, my code works with 2.7.6 but it doesn't in the 3.x versions
This comment is hidden because it contains spoiler information about the solution