<reponame>Mlmaha/java-to-python-in-100-steps
def example_method(mandatory_parameter, default_parameter="Default"
                   , *args, **kwargs):
    print(f"""
        mandatory_parameter = {mandatory_parameter} {type(mandatory_parameter)}
        default_parameter = {default_parameter} {type(default_parameter)}
        args = {args} {type(args)}
        kwargs = {kwargs} {type(kwargs)}
        """)

# example_method() #example_method() missing 1 required positional argument
# example_method(mandatory_parameter=15)  #example_method(15)
# example_method(25,"Some String")
# example_method(25,"String 1","String 2","String 3")
# example_method(25,"String 1","String 2","String 3","String 4","String 5")
# example_method(25,"String 1","String 2","String 3",key1='a', key2='b')
#example_method(25,"String 1",key1='a', key2='b')
# example_method(key1='a', key2='b',mandatory_parameter=25,default_parameter="String 1")
# example_method(25,"String 1",key1='a', key2='b')
example_list = [1,2,3,4,5,6]
# example_method(*example_list)
example_dict = {'a':'1', 'b':'2'}
example_method(*example_list, **example_dict)
def example_method(mandatory_parameter, default_parameter="Default"
                   , *args, **kwargs):
    print(f"""
        mandatory_parameter = {mandatory_parameter} {type(mandatory_parameter)}
        default_parameter = {default_parameter} {type(default_parameter)}
        args = {args} {type(args)}
        kwargs = {kwargs} {type(kwargs)}
        """)

# example_method() #example_method() missing 1 required positional argument
# example_method(mandatory_parameter=15)  #example_method(15)
# example_method(25,"Some String")
# example_method(25,"String 1","String 2","String 3")
# example_method(25,"String 1","String 2","String 3","String 4","String 5")
# example_method(25,"String 1","String 2","String 3",key1='a', key2='b')
#example_method(25,"String 1",key1='a', key2='b')
# example_method(key1='a', key2='b',mandatory_parameter=25,default_parameter="String 1")
# example_method(25,"String 1",key1='a', key2='b')
example_list = [1,2,3,4,5,6]
# example_method(*example_list)
example_dict = {'a':'1', 'b':'2'}
example_method(*example_list, **example_dict)
mandatory_parameter = {mandatory_parameter} {type(mandatory_parameter)}         default_parameter = {default_parameter} {type(default_parameter)}         args = {args} {type(args)}         kwargs = {kwargs} {type(kwargs)} # example_method() #example_method() missing 1 required positional argument # example_method(mandatory_parameter=15)  #example_method(15) # example_method(25,"Some String") # example_method(25,"String 1","String 2","String 3") # example_method(25,"String 1","String 2","String 3","String 4","String 5") # example_method(25,"String 1","String 2","String 3",key1='a', key2='b') #example_method(25,"String 1",key1='a', key2='b') # example_method(key1='a', key2='b',mandatory_parameter=25,default_parameter="String 1") # example_method(25,"String 1",key1='a', key2='b') # example_method(*example_list)