Ad
  • Default User Avatar

    PEP8 is just a style guide to make it easier to read.

  • Default User Avatar

    It's not worth much by itself, it's just a way to shorten the code as much as possible. Your solution is much more readable (this code is not suitable for production, because parameters are not listed clearly, and spacing is not accounted of, making it hard to edit.)

  • Default User Avatar

    def count_legs(cows, sheep, chicks): return (cows+sheep)4+chicks2
    this is PEP8 compatible, I don't know if thats worth anything but leave a comment and please tell me.
    Also nice code to make it shorter!