PYTHON : 35 Keyworded Variable length arguments in python

5 views2 pages
26 May 2023
Department
Course
Professor

Document Summary

#35 python tutorial for beginners | keyworded variable length arguments in python. Section overview: in this section, the speaker introduces the topic of python functions and discusses passing parameters or arguments to a function. Python functions can take parameters or arguments. There are different types of arguments that can be passed, including keyword, position, default, and variable length arguments. The speaker demonstrates how to create a function that takes in data from the user as parameters. The example function takes in a name, age, city, and phone number as parameters. The name parameter is considered the most important parameter for a person"s data. Section overview: in this section, the speaker discusses variable length arguments and keyword variable arguments in python. To accept a variable length argument, use followed by a parameter name. Use a for loop to print all data passed as an argument. Use keyword variable arguments to pass multiple data with the help of keywords.