#Km91#@sh.itjust.works to TenForward: Where Every Vulcan Knows Your Name@lemmy.world · 10 hours agoMachine learningsh.itjust.worksimagemessage-square29fedilinkarrow-up1436arrow-down16
arrow-up1430arrow-down1imageMachine learningsh.itjust.works#Km91#@sh.itjust.works to TenForward: Where Every Vulcan Knows Your Name@lemmy.world · 10 hours agomessage-square29fedilink
minus-squareGork@lemm.eelinkfedilinkarrow-up77·9 hours agoThis, folks, is why global definition of variables can lead to your untimely demise.
minus-squarewia@lemmy.calinkfedilinkarrow-up15·9 hours agoExactly what I bring up when argumentative people show up with any of the inane food definitions “hot dog is sandwich” or “milkshake is soup” and what not.
minus-squarecm0002@lemmy.worldlinkfedilinkarrow-up3·8 hours ago“Pizza is an open-face sandwich” ~Madlad Lemmyor (lemmyite? Lemm? Lemmor? Just what do we call users of Lemmy anyways???) from a couple weeks ago
minus-squareBougieBirdie@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up13·8 hours agoI see “Lemmings” a lot and fairly like that
minus-squareArtVandelay@lemmy.worldlinkfedilinkEnglisharrow-up8·edit-29 hours agodef hot(temp: int = 340): return temp That way Bev can define temp however she needs, but if Picard doesn’t specify, he gets his tea at a nice drinkable Kelvin temp.
minus-squareWhiskyTangoFoxtrot@lemmy.worldlinkfedilinkarrow-up2·8 hours agoShouldn’t that be a float?
minus-squareArtVandelay@lemmy.worldlinkfedilinkEnglisharrow-up5·7 hours agoPython is dynamically typed, so you could just go against the type hint like an animal. But yes, probably.
minus-squarewatersnipje@lemmy.blahaj.zonelinkfedilinkarrow-up1·5 hours agoIf you want to write Python like a caveman, then sure
This, folks, is why global definition of variables can lead to your untimely demise.
Exactly what I bring up when argumentative people show up with any of the inane food definitions “hot dog is sandwich” or “milkshake is soup” and what not.
But is corn grass?
“Pizza is an open-face sandwich” ~Madlad Lemmyor (lemmyite? Lemm? Lemmor? Just what do we call users of Lemmy anyways???) from a couple weeks ago
I see “Lemmings” a lot and fairly like that
def hot(temp: int = 340): return temp
That way Bev can define temp however she needs, but if Picard doesn’t specify, he gets his tea at a nice drinkable Kelvin temp.
Shouldn’t that be a float?
Python is dynamically typed, so you could just go against the type hint like an animal. But yes, probably.
If you want to write Python like a caveman, then sure