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.
too little information to act on
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.
As you can see from my comment below (5 years ago) this is a python 2 solution. Replace
/
with//
for integer (=floor) division, and it works fine.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 think criticizing came out well becaue this sentence is easier to understand and I didn't have to read it 5 times and still have doubts about what I've read. The same goes for other people.
I also wanted to say it ended up well but the original comment is still unchanged. You duct-taped the wheel instead replacing it (as I've asked) and now future readers may go through our blabber to finally understand intention of 1st comment.
Beside what "mac" means in this context? Is it a slangword of sorts?
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.
Edit please, grammar bad.
What is your point beside advertising the site?
This comment is hidden because it contains spoiler information about the solution
Loading more items...