Is it safe for a Solo Female Traveller in Morocco?

Street harassment is the primary nuisance for female travelers in Morocco. Of course not everyone experienced the same and it can also depend where you are.