schnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 3 months agoxkcd #2954: Bracket Symbolsxkcd.comexternal-linkmessage-square32fedilinkarrow-up1332arrow-down16file-text
arrow-up1326arrow-down1external-linkxkcd #2954: Bracket Symbolsxkcd.comschnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 3 months agomessage-square32fedilinkfile-text
minus-squareMonkderDritte@feddit.delinkfedilinkEnglisharrow-up4·3 months agoThe python function is some sort of brainfuck?
minus-squaremarcos@lemmy.worldlinkfedilinkEnglisharrow-up7·edit-23 months agoIt’s a list with a tuple, with a list with an empty dictionary. I’m not sure the innermost parenthesis is legal there. Edit: Well, I tested it. It’s legal. {()} is just a set with an empty tuple instead of a dictionary.
The python function is some sort of brainfuck?
It’s a list with a tuple, with a list with an empty dictionary. I’m not sure the innermost parenthesis is legal there.
Edit: Well, I tested it. It’s legal.
{()}
is just a set with an empty tuple instead of a dictionary.