|
|
|
|
|
by FreakLegion
1641 days ago
|
|
It's a common pattern as others have said, but this specific version of it is poor practice. The code should be in a function instead of polluting the global namespace (otherwise 'console', 'table', and 'color' end up being shadowed if they're used elsewhere in the file). Keep it clean with e.g.: def main() -> None:
pass
if __name__ == "__main__":
main()
|
|