Maybe wait until she's a few years older. Nothing wrong with letting her pet it while you hold it.
The problem really is that the snake might be injured. If the snake decides to twist while it being held too tight an injury could occur.
Young children don't have the muscle controlled needed to hold a snake properly. Don't get me wrong, some do but I always side on caution for the snakes sake.
Just my opinion.