With 8 scales, it's almost certainly a male. It's possible your friend missexed the snake at some point in the past and it was a genuine mistake, or he lied to you about the sex of the snake. I would talk to your friend ASAP.