#Km91# to TenForward: Where Every Vulcan Knows Your Name • 6 hours agoMachine learningsh.itjust.worksimagemessage-square27fedilinkarrow-up1364arrow-down16
arrow-up1358arrow-down1imageMachine learningsh.itjust.works#Km91# to TenForward: Where Every Vulcan Knows Your Name • 6 hours agomessage-square27fedilink
minus-square@ArtVandelaylinkEnglish7•edit-25 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-square@ArtVandelaylinkEnglish5•3 hours agoPython is dynamically typed, so you could just go against the type hint like an animal. But yes, probably.
minus-square@[email protected]linkfedilink1•49 minutes agoIf you want to write Python like a caveman, then sure
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