diff --git a/python_tutorials_code/tut_41.py b/python_tutorials_code/tut_41.py new file mode 100644 index 0000000..15fd8a0 --- /dev/null +++ b/python_tutorials_code/tut_41.py @@ -0,0 +1,21 @@ +# def function_name_print(a, b, c, d, e): +# print(a, b, c, d, e) + +def funargs(normal, *argsrohan, **kwargsbala): + print(normal) + for item in argsrohan: + print(item) + print("\nNow I would Like to introduce some of our heroes") + for key, value in kwargsbala.items(): + print(f"{key} is a {value}") + + +# function_name_print("Harry", "Rohan", "Skillf", "Hammad", "Shivam") + +har = ["Harry", "Rohan", "Skillf", "Hammad", + "Shivam", "The programmer"] +normal = "I am a normal Argument and the students are:" +kw = {"Rohan":"Monitor", "Harry":"Fitness Instructor", + "The Programmer": "Coordinator", "Shivam":"Cook"} +funargs(normal, *har, **kw) +