If it was good and secure, maybe, but I see a suction cup. When that gives way, the string goes slack, and there's a chance the snake could become entangled in a knot. That could cut off circulation or kill the animal. I'd use something thicker and less prone to tangling. I recently purchased a roll of 1/4" soaker hose from Home Depot plumbing dept. It's soft, but strong and waterproof. Not sure how you'd attach it in an aquarium, but I'm planning on using it as vines in a wooden enclosure.