1 00:00:00,000 --> 00:00:03,060 So this function here that we built in the 2 00:00:03,061 --> 00:00:06,300 previous lecture accepted an arbitrary number of 3 00:00:06,660 --> 00:00:10,920 non keyword arguments. For keyword arguments, you 4 00:00:10,921 --> 00:00:15,300 have to add another asterisk, two asterisks, and 5 00:00:15,301 --> 00:00:19,830 then pass a variable name, but kwargs is a 6 00:00:19,831 --> 00:00:22,530 convention. So please use that even though you don't 7 00:00:22,531 --> 00:00:27,990 have to, and then see what kwargs is, which 8 00:00:27,991 --> 00:00:33,420 stands for keyword args. If you try to call the 9 00:00:33,421 --> 00:00:36,600 function there, we will get an error because this 10 00:00:36,601 --> 00:00:40,050 is about a function with an arbitrary number of 11 00:00:40,051 --> 00:00:44,130 keyword arguments only. Therefore, all these 12 00:00:44,160 --> 00:00:47,880 arguments have to be named arguments, so keyword 13 00:00:47,910 --> 00:00:52,980 arguments, having the keyword arguments name, b, 14 00:00:53,010 --> 00:00:57,930 and c like that, and execute, and you get a 15 00:00:57,931 --> 00:01:02,520 dictionary. The dictionary will have items where 16 00:01:02,521 --> 00:01:06,240 each key will be the name of the arguments that 17 00:01:06,241 --> 00:01:09,600 you used when you called the function, and the 18 00:01:09,601 --> 00:01:11,940 value will be the value of that argument. 19 00:01:12,120 --> 00:01:14,910 Functions with an arbitrary number of keyword 20 00:01:14,940 --> 00:01:17,820 arguments are more readily used than functions 21 00:01:17,821 --> 00:01:20,250 with an arbitrary number of known keyword 22 00:01:20,251 --> 00:01:24,000 arguments, such as print function that I told you 23 00:01:24,001 --> 00:01:27,450 earlier, where you can just pass as many arguments 24 00:01:27,451 --> 00:01:30,480 without a keyword. So there you have it. 25 00:01:30,481 --> 00:01:34,400 [Outro sound]