Is Iran Safe to Travel to as a Solo Female Traveler?

Before I started reading more into Iran, all I heard about this country were stories about its politics. In the media, Iran seemed like a place where no one would ever want to visit, leave alone go there as a solo female