by bloopernova · 3y ago · 0 comments
f"This is the playlist: {", ".join([
'Take me back to Eden', # My, my, those eyes like fire
'Alkaline', # Not acid nor alkaline
'Ascensionism' # Take to the broken skies at last
])}" "This is the playlist: " + ", ".join([
'Take me back to Eden', # My, my, those eyes like fire
'Alkaline', # Not acid nor alkaline
'Ascensionism' # Take to the broken skies at last
])
Which is easier to read and exactly as long.(In fact, without 3.12-compatible syntax highlighting, my first intuition upon reading the first line would be to suspect the code of having a typo.)
"This is the playlist: " + ", ".join([
"Take me back to Eden", # My, my, those eyes like fire
"Alkaline", # Not acid nor alkaline
"Ascensionism", # Take to the broken skies at last
])"
edit: jinx