Skip to content

Commit 70898c9

Browse files
committed
Function params ** kwargs
1 parent cfa7cb6 commit 70898c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

function_params.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

2-
def print_msg(msg, error="No Error"):
2+
def print_msg(msg, error="No Error", *kwargs):
33
print("Log : "+error+":" + msg)
4+
print(kwargs)
45

56

6-
print_msg("This will be logged", "File not found")
7+
print_msg("This will be logged","File not found", "1", "12", "213", "32113")

0 commit comments

Comments
 (0)