Skip to content

Instantly share code, notes, and snippets.

@hassanuos
Created January 31, 2024 05:02
Show Gist options
  • Save hassanuos/7f6c264e1285761868cf48d243f2bfbc to your computer and use it in GitHub Desktop.
Save hassanuos/7f6c264e1285761868cf48d243f2bfbc to your computer and use it in GitHub Desktop.
def my_kwargs_function(**kwargs):
for key, value in kwargs.items():
print(f"{key}: {value}")
my_kwargs_function(name="hassan", age="34", city="hobart")
#output
#name: hassan
#age: 34
#city: hobart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment