Rodrigo Girão Serrão 🐍🚀@mathspp.com2 MarHow do you collapse runs of adjacent spaces in Python? That is, shorter runs of 2+ consecutive spaces so there's only 1 space there? I can't come up with a simple/straightforward way to do it with `str.join` and I'm surprised... What am I missing?41
Rodrigo Girão Serrão 🐍🚀@mathspp.comAt least you managed to make it work! For a while, I couldn't do anything at all :P2/3/26, 3:24 pm·0 reposts·0 likes