A 5.9-foot black-headed python was found in a toilet bowl on the 10th floor of an Australian apartment complex.

It is believed the snake had been living in the plumbing of the building for some time.

Reptile wrangler Chris Peberdy rescued it after the tenants of the Cullen Bay apartment got the shock of their lives when going to the bathroom, the Northern Territory Newsreported.

"When I saw it I was pretty shocked," Peberdy told the Northern Territory News. "It's one thing in the Territory to have a green frog in the toilet ... but not a six-foot python. It would certainly scare you if it came up from the depths of the toilet.”

Peberdy said there were no windows or other spaces through which the snake — which is "as thick as someone's wrist" — could have got in.

"There is no possible other way it could have got there than through the toilet," Peberdy said.

Peberdy said the python, which is not poisonous, was likely to be a runaway pet that had traveled through the pipes after escaping a neighbor's home.

Click here for more from News.com.au.