main() function doesn’t run when running script

You still have to call the function.

def main():  # declaring a function just declares it - the code doesn't run
    print("boo")

main()  # here we call the function

Leave a Comment