• @ArtVandelay
    link
    English
    7
    edit-2
    5 hours ago
    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.

      • @ArtVandelay
        link
        English
        53 hours ago

        Python is dynamically typed, so you could just go against the type hint like an animal. But yes, probably.