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.
OMG, i'm very stupid
The comma operator makes age,handicap a tuple to Python. The parenthesis make it a tuple to everyone else.
Close to mine but I totally forgot about tuple unpacking ...
because output is list
Just like msc3000 said. With more detail; kata itself asks for an array result containing class of each member (data), so in each iteration evaluated adds into the returning array 'Senior' or 'Open' depending on de result of that evaluation. Hope it helps despite my horrible english.
Is there a reason for writing it in square brackets ?
The highest rated and most clever really don't seem to be best practice. They are always harder to read.
Lines of code are cheap.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Very Pythonish I'd say!
Mine is the same, minus the much better named variables like here lol.
You don't have to consider all data types. But at the same time, it's important to take into account those scenarios that could be missed in the tech specification and which may appear as a result of the system operation (for example, if data in tuples is formed dynamically after they are entered through some interface). As a rule, such scenarios are checked by QA.
I think its probably clever, but definitely not the best practice as it is hard to track the code.
how the fuck you got the index from the list with the name lmaaaaaaaaaaaaaaaaaaooooooo
it is called unpacking.
Loading more items...