Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • purplemonkeymad@programming.dev
    link
    fedilink
    arrow-up
    20
    ·
    2 days ago

    It’s less of a main, and more of a “don’t do this if being imported.” You can just throw code without that block and it will run.