Police say the incident happened Monday at Taylor Allderdice High School.
Police aren't identifying the 17-year-old suspect because he's being charged in juvenile court. The boy will be charged with theft and cruelty to animals.
The animal survived the ordeal and was being checked out and treated by a veterinarian.
Pittsburgh Public School officials on Tuesday were not immediately able to say what kind of snake was involved or how large it is.
Get Action News on your website