We use Python 3.6

go back Level: Beginner (img: BG / score: 2) level Bite 43. Force keyword arguments

60 out of 62 users completed this Bite ...
Will you be Pythonista #61 to crack this Bite?
Average Bite difficulty 1-10 rating: 3.4
» You can do it! 😌

Write a function called get_profile that can only allows 2 keyword arguments: name and profession which default to julian and programmer respectively.

The function does nothing fancy, just return a str: name is a profession.

The point is to limit the interface of this function and you'll see Python makes it very easy ... have fun!

Github login button