Session Ready
Exercise

Combining argument types

Now you'll try to combine different argument types. Your task is to define the sort_all_types() function. It takes positional and keyword arguments of variable size, finds all the numbers and strings contained within them, and concatenates type-wise the results. Use the sort_types() function you defined before (available in the workspace). It takes a positional argument of variable size and returns a tuple containing a list of numbers and a list of strings (type sort_types? to get additional help).

Keep in mind that keyword arguments of variable size essentially represent a dictionary and the sort_types() function requires that you pass only its values.

Tip: To call the sort_types() function correctly, you'd have to recall another usage of the * symbol.

Instructions
100 XP
  • Define the arguments passed to the function (use any name you want).
  • Find all the numbers and strings in the 1st argument.
  • Find all the numbers and strings in the 2nd argument.