home.social

#pythoncodegolf β€” Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythoncodegolf, aggregated by home.social.

  1. I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

    This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

    discuss.python.org/t/allowing-…

    #python #CodeGolf #PythonCodeGolf

  2. I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

    This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

    discuss.python.org/t/allowing-…

    #python #CodeGolf #PythonCodeGolf

  3. I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

    This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

    discuss.python.org/t/allowing-…

    #python #CodeGolf #PythonCodeGolf

  4. I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

    This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

    discuss.python.org/t/allowing-…

    #python #CodeGolf #PythonCodeGolf

  5. I've been annoyed by my lack of a way to put "multi-line one-liner" python code into my bash code with reasonable indentation.

    This discussion suggested a workaround: Make the first line `if 1:`, then you can indent all you like on the second line. Good enough for me!

    discuss.python.org/t/allowing-…

    #python #CodeGolf #PythonCodeGolf