JPDev@programming.dev to Programmer Humor@programming.dev · 10 months agoThe Perfect Solutionprogramming.devimagemessage-square67fedilinkarrow-up1671
arrow-up1671imageThe Perfect Solutionprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 10 months agomessage-square67fedilink
minus-squarerimjob_rainer@discuss.tchncs.delinkfedilinkarrow-up14·edit-210 months agoyes of no Not even valid json but compiler doesn’t complain
minus-squarePennomi@lemmy.worldlinkfedilinkEnglisharrow-up18·10 months agoNot sure what you mean, there’s no json in this code, it’s all valid (if a little ugly) Python.
minus-squareNιƙƙιDιɱҽʂ@lemmy.worldlinkfedilinkarrow-up3·10 months agoLooks pretty much the same as a template string in Javascript, an arguably crazier language.
yes of no
Not even valid json but compiler doesn’t complain
Not sure what you mean, there’s no json in this code, it’s all valid (if a little ugly) Python.
So what does the f do?
It is a f-string
Python is crazy
Looks pretty much the same as a template string in Javascript, an arguably crazier language.