Ad
  • Default User Avatar

    However, this answer wasn't written to use good coding practices. It was written to show off how short it could be written. :)
    I would never write code like this for a real project, just for goofy fun.

    Exactly my intentions :')

  • Default User Avatar

    There is also a complementary explanation for the "magic bracket" below

  • Default User Avatar

    I don't get how it works. Can someone explain: a) why is even_or_odd not a function and can nevertheless be called with a number? b) how does this magic bracket work? Thanks in advance :)