THANK YOU! This is one of those things people expect you to do but never explain why you have to do it. Like, I can understand that I have to have a main function but show me why and what happens when I don't.
Something confusing to new learners is when you use .py names that are duplicative of non dynamic syntax. Calling the .py "main" when the if statement is not referring to the .py named main causes confusion. A new user will see that and attempt to change '__main__' to reference the .py they are trying to call the functions from. Otherwise, very good video.
That is crazy as I was typing 'what is if __name__ == __main__' on the search bar, a notification popped up and it was this video. What a coincidence 😂 thanks dude
How are you calling myvalue as global variables at 6:03. When you use if ___name___ == '__main__' then myvalue is definitely not a global variable. You have to use *global myvalue* before defining it to make it global. The error is not at all confusing. Its pretty clear.
Bro, there are two possibilities, either you’re fucking genius teacher or others are terrible craps doing it. Whatever the answer is, as many others here i finally understood this concept after a few hours of unsuccessful researches.
i understood this a lot more than what was discussed in the sc50 class! I need to find more simple, basic and vary beginner focused videos talking about how to structure these still though. Thanks for posting this though, it helped with a big part of the confusion on why we use these.
Love ❤ for ur efforts and ur content In future I am expecting videos on Frontend roles and Responsibilities like 1. What actually do frontend developers do in realtime ( different tasks) 2.. How manage 4+ experience in realtime 3. . How to crack any frontend interviews with 4+ years of experience 4.....Easy way to to crack any angular/reactjs interviews with 4+ experience/10lack package ------) )) 5....Top 20 program's to cover entire angular/reactjs syllabus.----)) 6....Top 10 angular/reactjs concepts with examples