fb pixel

A function that ignores positional arguments

Can you write a function that completely ignores any positional argument passed to it and return 2 keyword arguments - name and surname separated by a dash (-)?
The function should ignore all the positional arguments passed to it. It should return two keyword arguments passed to it separated by a dash. Several examples of the function call:
def full_name():
	...

print(full_name(2, 3, 4, name='Bob', surname='Brown'))  # Bob-Brown
print(full_name(name='Anna', surname='Brown'))          # Anna-Brown
print(full_name('Anna', name='Lily', surname='Green'))  # Lily-Green
 
To check your solution you need to sign in
Sign in to continue