Ad
  • Custom User Avatar

    You do not need to get to this level.
    PEP 8 has a recommondation for only 79 characters per line.

    Do not feel bad if you need multiple lines.
    The multi liner with a propper For, add to list, return new list is not a bad solution either. Not even in terms of speed.

  • Default User Avatar

    anytime you want? i mean, idk what exactly the code means/does but i solved it the same way lol
    Its something like retrun ( output, loop ) if you wanna return multiple stuff, and python just knows your x without you having to introduce her to it