What is Python's Main Function Useful For?

preview_player
Показать описание
In this video, we learn what the Python main function is useful for and how to use it.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

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.

expansivegymnast
Автор

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

rupacFan
Автор

I have done a lot of reading and practicing in Python never could understand the dunder thing was and now it finally clicked for me. Thanks, man!

Pogo_tC
Автор

BRILLIANT! After watching at least 10 other tutorials, I FINALLY undersand this concept. Great teaching skills and great style, keep it up ;)

alexander.starbuck
Автор

I’ve watched a few videos about this and by far you have the most clear understandable explanation

CliffR
Автор

my mind just exploded, I see lots of people using it but never had seen someone explaining it, thanks a lot!

holy
Автор

Awesome!
I had needed this in my project and I didn't know how to do it...
Thanks again!

wko_
Автор

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.

tylerlee
Автор

Thanks, I watched 5 other YouTube videos on this topic and your video explained this topic the best.

andrewjenson_original
Автор

I like this man how he starts his videos and his explanaition. he looks fynny but serious. i expect more on python GUI

johnztech
Автор

The best explaination I could find! Thanks a lot

CloseStudios
Автор

YOU'RE TOO GREAT buddy, thanks for dissecting these python notions like that..

danlekosh
Автор

Finally understood why we use it!
Thanks Man!

mohammedmusthafa
Автор

You are the best teacher I have found. You are a genius. Thank you

darkuncle
Автор

This video helped me a lot!! Thank you!

vasilebordei
Автор

Thank you this was the best explanation for this topic!

bookweerd
Автор

Thanks so useful! And so easy to understand

patriciodiaz
Автор

yeah I agree with other comment - saw other videos on this topic and I think your explanation was best. thanks.

seanredmond
Автор

Thanks :) I just counted on that I could find a video with you explaining this :D

MrCipek
Автор

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.

hjedpej