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 was surprised to see tht exec() wasn't allowed. I would like to see how much easier this would have been with that.
I tried OOP classes in python for this and my entries were multipled by 4, so I got rid of the classes.
Found out the code had flipped to javascript. I didn't do that intentionally.
I just tried to go back in and my existing work disappeared. At least I have some versions of this!
I basically did the 1 and 2 versions the same, and just changed the return area. I would have liked this better if it would have just been octaves instead of a piano keyboard. I wonder how many people who did this actually know how to play an instrument. I learned to play a violin and had a few years on piano. I can still sight read music.
I did a few more tests to remove the longer math.floor around my original submission and did use the //, and used an int() around the last one. Still fun to find new little tweaks.
I love finding the shortest solutions here after I've written code. It's just amazing to see how compressed some code can be. Kudos to you.
I can't edit the original comment.
It is a macbook and not a windows laptop. You should realize that "grammar bad" is bad grammar, and you misspelled a word. I realized that English isn't probably your native language. I wouldn't call just showing a url to site isn't advertising because I am just showing the link where I found the same answer.
I just wanted to mention that I'm having a difficult time on this mac, and I knew there was a probable a basic one line solution and I was able to find the exact command online after I wrote my longer solution. You didn't need to criticize me.
This comment is hidden because it contains spoiler information about the solution
I knew there would be better ways to accomplish this, but my old laptop died, and I'm using a mac, and it won't let me find the solutions well. It was fun anyway.