Should really have most line above and below your other functions also in functions, then call those at the bottom of the script using a
if __name__ == "__main__":
func1()
func2()
from stack overflow: "By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves."
Should really have most line above and below your other functions also in functions, then call those at the bottom of the script using a
from stack overflow: "By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves."