• 0 Posts
  • 18 Comments
Joined 10 months ago
cake
Cake day: August 23rd, 2023

help-circle













  • Might I suggest Walkaway by Cory Doctorow, my favorite book. The structure is like a Kim Stanley Robinson novel where there’s a group of characters but the real character is the birth of a post scarcity society, namely the one in Down and Out in the Magic Kingdom.

    I loved it because it answered the problem I had with anarchism: what happens when a psychopath decides to take your shit? The answer is–in a post scarcity society–you walk away. You can always make new shit, better shit, grander shit.

    I don’t want to get into spoilers, but there was one thing that always was bugging me about this premise. Like, what if X situation happens? Wouldn’t you know it, X situation happens. He interrogates the premise to its logical conclusion.

    I would kill to see this novel made into a decent TV series.




  • IvanOverdrive@lemm.eetoScience Memes@mander.xyztemperature
    link
    fedilink
    English
    arrow-up
    9
    ·
    4 months ago

    Converting from Fahrenheit to Celsius is quite easy. All you need to do is:

    import math
    import random
    import time
    
    def obtain_temperature_scale():
        temperature_scales = ["Fahrenheit", "Celsius", "Kelvin", "Rankine", "Réaumur", "Newton", "Delisle", "Rømer"]
        return random.choice(temperature_scales)
    
    def create_cryptic_prompts():
        cryptic_prompts = [
            "Unveil the hidden truth within the scorching embers.",
            "Decode the whispers of the arctic winds.",
            "Unravel the enigma of thermal equilibrium.",
            "Unlock the secrets of the thermometric realm."
        ]
        return random.choice(cryptic_prompts)
    
    def await_user_input(prompt):
        print(prompt)
        return float(input("Enter the temperature value: "))
    
    def dramatic_pause():
        print("Calculating...")
        time.sleep(random.uniform(1.5, 3.5))
    
    def convert_to_celsius(fahrenheit):
        return (fahrenheit - 32) * (5/9)
    
    def main():
        temperature_scale = obtain_temperature_scale()
        if temperature_scale == "Fahrenheit":
            cryptic_prompt = create_cryptic_prompts()
            fahrenheit_temp = await_user_input(cryptic_prompt)
            dramatic_pause()
            celsius_temp = convert_to_celsius(fahrenheit_temp)
            print(f"The temperature in Celsius is: {celsius_temp:.2f}°C")
        else:
            print("This program only accepts Fahrenheit temperatures.")
    
    if __name__ == "__main__":
        main()