• 4 Posts
  • 1.03K Comments
Joined 5 months ago
cake
Cake day: January 16th, 2024

help-circle







  • This is bad practice.

    More accurately it should look something like this:

    # Load sys library for exiting with status code
    import sys
    
    def sayHelloWorld(outPhrase: str="Hello World"):
        # Main function, print a phrase and return NoneType
        print(outPhrase)
        return None
    
    if __name__=="__main__":
        # Provide output and exit cleanly when run from shell
        sayHelloWorld()
        sys.exit(0)
    else:
        # Exit with rc!=0 when not run from shell
        sys.exit(1)
    










  • Does your local library support Libby?

    Libby is an app that allows you to use your library card to check out ebooks, audiobooks, and digitized magazines. Free to anyone with a library card (at a participating library).

    That’s one of several resources that a lot of libraries provide. Hoopla, as well, for shows and movies. And some have maker spaces, or 3d printers, or loan tools. And they usually have discount passes for local edutainment attractions (museums, aquariums, zoos, etc).

    Some give you a month subscription to genealogy sites. Lots of stuff for little kids and families, usually activities or story times or craft classes. Classes for grownups too.

    Tons of stuff at/from your local library. More than just books.



  • Yeah I rented a Mustang Mach-E and drove between Houston, Austin, Dallas, and back to Houston, without very much charger anxiety. And not being confined to a slow charger…except on the way back to the airport. The first charger I found was a slow charger and all the fast ones were occupied. But still had plenty of charge to find the next station and get it high enough to return