From a722be04a6db15a051f799e451b777ef9451a9b8 Mon Sep 17 00:00:00 2001 From: Techo9209 <67228237+Techo9209@users.noreply.github.com> Date: Thu, 1 Oct 2020 09:57:40 +0530 Subject: [PATCH] Create tut_41.py --- python_tutorials_code/tut_41.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 python_tutorials_code/tut_41.py 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) +