Barcelona head coach Pep Guardiola has reacted to questions regarding racism in football by saying that players have a responsibility to set an example to the rest of the world.