9,771 views
Want to know more about our Complete Python Course? Click the link below to secure your spot in the next class: https://pages.hashtagtreinamentos.com... TO DOWNLOAD THE BASIC PYTHON MINICOURSE: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- ► Files Used in the Video: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/a... ----------------------------------------------------------------------- Hey Awesome! In today's class I want to show you what args and kwargs are in Python. You've probably heard of these names, but you may not know what they are or how they work. So, what are args in Python? They are nothing more than positional arguments (parameters in the order in which your function is requesting the arguments). So with args, you will be able to pass several parameters according to the position. Now, what are kwargs in Python? It's very similar, but it's used for keyword arguments (parameters according to the name of the parameters). This means that we can pass the arguments with the name they have inside the function. And what's the use of args and kwargs? You can pass as many parameters as you want, whether they're positional or keyword parameters. This way, Python will understand that in that location you're going to pass one or more arguments to your function. ----------------------------------------------------------------------- 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! ----------------------------------------------------------------------- Class Content 00:00 Introduction 01:05 How do function arguments work in Python? 02:58 Positional arguments 04:33 Keyword arguments 07:12 What are args? (Positional parameters) 13:44 What are Kwargs (Keywrod parameters) 20:20 Conclusion #python #hashtagprogramacao