A young woman woke up at 4am to find a three-metre python around her neck.
She said that as her eyes adjusted to the dark she saw “the snake’s head and felt its tongue”.
The 18-year-old woman, identified as Nor Alia Aqilla Jamaluddin, suffered the fright at home in the city of Kuala Terengganu in the western Malaysian state of Terengganu.
According to Ms Jamaluddin, she first felt something about 3am, but did not see anything and went back to sleep.
But she felt something again about 4am and was stunned to find a python around her neck.
“I felt something soft around my neck and as my eyes adjusted to the dark I saw the snake’s head and felt its tongue on my neck,” she said.
“I quickly got up and walked over to switch on the light and was shocked to discover a 10-foot-long (three-metre-long) python curled up on my bed.”
Incredibly Ms Jamaluddin lives in a 14th-floor flat and it is unknown how the python arrived there without being seen.
According to local media, the whole family left the flat in the middle of the night to wait for emergency services to arrive.
A four-man team reportedly arrived at 5.30am and found the reptile under the woman’s bed.
Reports said the snake weighed 26 kilograms and measured three metres in length.