I am giving feedback to a group of students on an assignment, many of whom are attempting to pass a set as a keyword argument in a function by passing a string in curly braces.
When I print (type({'some_string'})) I get class = set. But when I pass the same argument as set('some_string') I get different output.
e.g.
some_random_function (kwarg = {'some_string'})
is different to
some_random_funtion(kwarg = set('some_string'))
can anyone help me understand why?