Ad
  • Default User Avatar

    too little information to act on

  • Custom User Avatar

    I was surprised to see tht exec() wasn't allowed. I would like to see how much easier this would have been with that.

  • Custom User Avatar

    I tried OOP classes in python for this and my entries were multipled by 4, so I got rid of the classes.

  • Custom User Avatar

    Found out the code had flipped to javascript. I didn't do that intentionally.

  • Custom User Avatar

    I just tried to go back in and my existing work disappeared. At least I have some versions of this!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    I can't edit the original comment.

  • Custom User Avatar

    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.

  • Default User Avatar

    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?

  • Custom User Avatar

    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.

  • Default User Avatar

    Edit please, grammar bad.

    What is your point beside advertising the site?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...