Como usar def no Python - Funções Explicadas em 10min

Want to learn more about our Complete Python Course? Click on the link below to secure your spot in the next class: https://lp.hashtagtreinamentos.com/es... TO DOWNLOAD THE BASIC PYTHON MINICOURSE: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- ► Files Used in Video: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/f... ----------------------------------------------------------------------- TO HIRE HASHTAG FOR YOUR COMPANY: https://www.hashtagtreinamentos.com/t... ----------------------------------------------------------------------- Do you know how to use def in Python? Do you know what it means and what it creates within Python? Today I will explain what def is, what functions are and how they work in Python! A function is nothing more than a reusable block of code, that is, you only need to write this block of code once and then you can use it anywhere in your code. This is very useful, because in addition to making your code cleaner, it makes it easier to read and understand. Besides, it is much easier to use this block without having to rewrite it every time you use it, right? In this class I will show you how to create a function, what the classic way to create a function is and how it can or cannot return values ​​if necessary! ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click on the bell)! ► Like our video! ----------------------------------------------------------------------- Social Networks ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programação channel we teach several Python tips so that you can develop in this programming language and create your own projects and automations! ----------------------------------------------------------------------- Class Content 00:00 Introduction 00:30 What is a function in Python + Advantages 00:59 Example with function 02:40 How to create functions in Python (structure) 04:26 Function options 05:04 Returning information (returning data) 05:20 Classic way to create a function 06:20 Using the function in code 10:20 Conclusion #python #hashtagprogramming