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.
because despite having its dangers, the solution is beautiful to see, in the context of codewars, this type of solution comes out ahead... multiple 'ifs' are sometimes not very elegant..
I just read some comments below that clearly state you shouldn't use eval() for these kinds of purposes because eval() will
run absolutely anything, therefore it's potentially extremely hazardous to use it. So, explain to me: why the 724 Best Practices?
Hello,
"match" and "case" were new features when Python 3.10 came out. Make sure you have your Jupyter interpreter above py3.10
I tried this in Jupyter Notebooks, but the 'match' and 'case' keywords don't seem to be in my distro, can you clarify where they come from?