1# arguments
2def test_var_args(f_arg, *argv):
3 print("first normal arg:", f_arg)
4 for arg in argv:
5 print("another arg through *argv :", arg)
6
7test_var_args('yasoob','python','eggs','test')
8
9# keywork arguments
10def test_var_kwargs(f_arg, **kwargs):
11 print(f_arg)
12 for (key, item) in kwargs.items():
13 print("Keyword: ", key)
14 print("Value: ", item)
15
16test_var_kwargs('yasoob', x = 12)
17