The Thai teenager looked down and saw the python with its jaws clamped around the tip of his penis. It quickly let go as blood spurted around the toilet bowl.
The incident happened in Nonthaburi, central Thailand, around 13 miles north of Bangkok.
He was rushed to the nearby Bang Yai Hospital to have his wounded penis treated.
Watch the video below: