Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions python_tutorials_code/tut_41.py
Original file line number Diff line number Diff line change
@@ -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)