r/learnpython • u/pedrinjose • 6d ago
Basically, if main
In Python, when you run your program in another folder, we add this, but I don't understand why. What's the point of doing this? If someone could explain it in a simplified way, I'd appreciate it.
10
Upvotes
View all comments
Show parent comment
1
u/codeguru42 6d ago
Who said anything about printing to shell? Sounds like you are talking about something different than the question. Or at least tangential to it