29,796 views
???? Join the Dev Mission 2025 ???? https://lp.refatorando.com.br/missao-... ???? Dive into our eBooks packed with valuable insights and join our community on Discord, where learning becomes a collective and inspiring experience. ✅ Ebook: How to use ChatGPT to learn programming: https://refatorando.com.br/m3m8 ✅ Ebook: How to find the best IT jobs: https://refatorando.com.br/sygl ✅ Ebook: How to stand out in IT selection processes: https://refatorando.com.br/ajnw ✅ Join our community on Discord: / discord Hey guys, how are you, Roger Santos here, and I'm happy to see you here again for another video and today in the Python Course for Beginners we are going to Learn Functions in Python you will learn What is a function what is it for how to use it Today's class is very important because function is one of the main features of Python and you will use it all the time, and after today your Python code will never be the same, if you learn this concept and use it wisely your programming will go to another level. So let's go to Pro PC and see what's so magical about functions. Let's start by creating the Aula07 folder and the [app.py] file to keep everything organized. Function is a collection of codes, a lot of code and programming logic packaged together. Imagine you go to McDonald's, you go to the cashier and order a Big Mac, you pay, the other attendant calls you and gives you the Big Mac. For you it was a super simple action, I ordered a Big Mac and received a Big Mac, now imagine everything that happened on the other side of the counter, the attendant registered the order, the order was sent to the kitchen, the grill cook prepared the hamburger, another person assembled the sandwich with all the ingredients and another person took your sandwich, checked if it was the same as your order, called you and gave you the sandwich. Complex, right? The function is basically the cashier, where you place the order and receive the sandwich. The entire other process is the collection of code and logic that is inside the function, and it serves precisely to organize your code, encapsulate and abstract this complexity. The customer does not need to know about this process and the main reason is reuse. If tomorrow you go back there or someone else orders a Big Mac, they will deliver a sandwich just like the one you ordered today. Okay, now enough philosophizing here and let's make our Big Mac in code? Share this video with more people: ▶ Subscribe to the channel: / @refatorando ▶ Follow us on Instagram: / refatorandobr ▶ Follow us on Tiktok: tiktok.com/@refatorando ▶ Follow us on Linkedin: / refatorando ▶ Email for contact: [email protected]