#for your eyes only child = play(boy, girl) assert isinstance(child, list): means you want to assert the object 'child' as an instance of the class 'list' # basically you want python to know 'child' is a 'list'