If it hisses, rises from the floor, and inflates a hood, hug it. It's just being friendly.
If it's black or brown, and about 6 ft long, it's also friendly. Give it a hug and cuddle up.
If it's about 6-inches long to 2 ft, green, and seems curious, just reach out and pet it on the head. It'll love you right back.