Created
January 31, 2024 05:02
-
-
Save hassanuos/7f6c264e1285761868cf48d243f2bfbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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