Count two keyword args
Input
count_kwargs(name='Alice', active=True)
Output
2
Two keyword arguments (name and active) were provided.
Full lesson preview
Use **kwargs to accept arbitrary keyword arguments and process them.
Problem statement
Task
Examples
Input
count_kwargs(name='Alice', active=True)
Output
2
Two keyword arguments (name and active) were provided.
Input format
Output format
Constraints
Samples
Input
count_kwargs()
Output
0
No keyword arguments, so the count is 0.