Rock python
The rock python gripped onto the man's neck Image Credit: Twitter/ CNN-News18

A worker in Kerala, India who tried to relocate an Indian rock python from a college compound soon found himself in a lot of trouble and had a near-death experience.

As the labourer apparently agitated the reptile, it tied wrapped itself around the worker's neck and started to strangle him.

The incident occurred in the city of Thiruvananthapuram in the Indian state of Kerala.

Some of the man’s co-workers pulled out the snake with one person tightly holding its head wrapped in a cloth. It was later handed over to forest officials and reportedly put back into the forest, according to a report by CNN-News18, an Indian English-language news television channel.

The 60-year-old man, who has been identified as Bhuvanachandran, was an employee of the National Rural Employment Guarantee Act, according to a report by the Deccan Herald.

The rock pythons usually found in India typically grow to around 10 feet in length and they are nonvenomous.

They are also found in parts of Nepal, Pakistan, Sri Lanka, Bhutan, Bangladesh, and Myanmar.