tfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 8 months agoExclusive insightspiefed.europe.pubimagemessage-square20fedilinkarrow-up10
arrow-up10imageExclusive insightspiefed.europe.pubtfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 8 months agomessage-square20fedilink
minus-squaregigachad@piefed.sociallinkfedilinkEnglisharrow-up0·8 months agoIt’s valid Python code though, the semicolons will run but are unnecessary
minus-squareNeatNit@discuss.tchncs.delinkfedilinkarrow-up1·edit-28 months ago I am so perplexed and horrified. I’m going to need several weeks to get over this. What is this?!
minus-squareMad_Punda@feddit.orglinkfedilinkarrow-up0·8 months agoA way to have several statements on the same line?
minus-squareNeatNit@discuss.tchncs.delinkfedilinkarrow-up1·8 months agoIt seems I had semicolons confused with braces: if picture is broken, it’s this: ~ $ python -c "from __future__ import braces" File "<string>", line 1 SyntaxError: not a chance
That’s not python
It’s valid Python code though, the semicolons will run but are unnecessary
I am so perplexed and horrified. I’m going to need several weeks to get over this. What is this?!
A way to have several statements on the same line?
It seems I had semicolons confused with braces:
if picture is broken, it’s this:
~ $ python -c "from __future__ import braces" File "<string>", line 1 SyntaxError: not a chance