
Fear slowly turns into understanding — coexistence in wild places.
The Girl Who Made Friends with a Python
The Discovery
The house stood at the edge of Kaziranga National Park, where the tea gardens met the wild grasslands and the sounds of the forest crept in through every window. Mrinmoyee — everyone called her Mrin — was ten years old, barefoot most of the time, and afraid of exactly one thing: snakes.
So when she found a rock python coiled under the raised bamboo floor of her house, she screamed so loudly that the chickens flew into the trees and didn't come down for an hour.
"There's a snake under the house!" she cried, running to her father. "A huge one! As thick as my leg!"
Her father, a forest guard at Kaziranga, walked calmly to the house, knelt down, and looked under the floor. He stayed quiet for a long time. Then he stood up and dusted his knees.
"That's a rock python," he said. "She's been living under there for a while, by the look of it. She's not dangerous."
"Not dangerous?" Mrin's voice went high. "She's bigger than me!"
The Understanding
Mrin's father sat her down on the veranda and explained. Rock pythons are not venomous. They are shy, slow-moving creatures who eat rats and frogs — the very pests that raided the family's rice store. The python wasn't a threat. She was, in a strange way, a helper.
"She chose our house because it's safe and warm," said her father. "In the forest, she has to worry about wild dogs and eagles. Under our floor, she's protected. She'll keep the rats away, and we'll keep the dogs away. It's an arrangement."
"An arrangement," Mrin repeated doubtfully. "With a snake."
"With a python," her father corrected. "There's a difference. Learn it."
The Slow Friendship
Mrin did learn. Over the following weeks, she watched the python — cautiously at first, then with growing curiosity. She gave the python a name: Bornali, which means "colourful" in the language of the people of Assam, because the python's scales shimmered with browns and golds in the sunlight.
Bornali was a creature of routine. She came out at dusk to drink from the puddle near the well. She basked in a patch of morning sun near the bamboo grove. She moved so slowly and deliberately that Mrin began to find her calming rather than frightening.
One evening, Mrin sat three metres from Bornali while the python drank. The python raised her head, tongue flickering, and looked at Mrin with steady, unblinking eyes. Then she lowered her head and continued drinking. No alarm. No aggression. Just acknowledgement.
"She knows me," Mrin whispered to her father.
"She knows you're not a threat," said her father. "In the animal world, that's the beginning of trust."
The Night of the Storm
During the monsoon, a terrible storm swept through Kaziranga. The wind tore branches from trees and the river rose dangerously close to the village. Mrin's family huddled inside their house, listening to the rain hammer the tin roof.
In the morning, Mrin ran outside to check on Bornali. The space under the house was flooded. Bornali was gone.
Mrin searched all day — along the bamboo grove, near the well, by the edge of the grassland. Nothing. She was surprised by how much she missed the python's quiet presence.
Three days later, the floodwater receded. And there, coiled in her usual spot under the house, was Bornali — wet, muddy, but alive. She had come back.
"She came home," said Mrin, and for the first time, she realized that home was a word that could include a python.
Living Together
Bornali lived under Mrin's house for four years. The rats vanished. The frogs thinned out. And Mrin grew up knowing something that most people never learn: that fear is often just unfamiliarity, and that the creatures we fear most are sometimes the ones who have the most to offer.
In Kaziranga, where rhinos and elephants and tigers share the land with farmers and fishermen, coexistence isn't a philosophy — it's a daily practice. Mrin and Bornali were proof that it works, one quiet evening at a time.
The end.
Choose your level. Everyone starts with the story — the code gets deeper as you go.
Here is a taste of what Level 1 looks like for this lesson:
# How much grain does a python save?
rats_per_year = 25 # rats eaten by one python
grain_per_rat = 12 # kg of grain one rat eats/year
saved_kg = rats_per_year * grain_per_rat
rice_price_per_kg = 40 # rupees
saved_rupees = saved_kg * rice_price_per_kg
family_daily_rice = 1.5 # kg per day
days_fed = saved_kg / family_daily_rice
print(f"One python saves {saved_kg} kg of rice/year")
print(f"Worth ₹{saved_rupees} at market price")
print(f"That feeds a family for {days_fed:.0f} days")
# Is killing the python worth it?This is just the first of 6 coding exercises in Level 1. By Level 4, you will build: Survey Local Human-Wildlife Interactions.
Free
Level 0: Listener
Stories, science concepts, diagrams, quizzes. No coding.
You are here
Level 0 is always free. Coding levels (1-4) are part of our 12-Month Curriculum.
The biology of pythons and reptiles — ectothermy, predation, and human-wildlife coexistence.
The big idea: "The Girl Who Made Friends with a Python" teaches us about Reptile Biology & Coexistence — and you don't need to write a single line of code to understand it.
Bornali the rock python basked in morning sun and sought shelter under the warm house floor — these are not random behaviors but essential survival strategies. Pythons are ectotherms (commonly called "cold-blooded"), meaning they cannot generate significant body heat internally like mammals and birds do. Instead, they regulate their body temperature by moving between warm and cool environments — a process called behavioral thermoregulation.
An ectotherm's body temperature closely tracks the temperature of its surroundings. A python basking in the sun might reach 30-35 degrees Celsius — the optimal range for digestion, movement, and immune function. In the shade or at night, its temperature drops to match the ambient air. This is why Bornali chose to live under Mrin's house: the raised bamboo floor absorbed heat during the day and radiated it slowly at night, creating a stable, warm microhabitat — warmer than the open forest floor.
Ectothermy is not a disadvantage — it is a remarkably efficient strategy. Because reptiles don't burn calories to generate heat, they need only about 10% of the food that a similarly sized mammal requires. A rock python that has eaten a large rat can survive for weeks or even months without another meal. This energy efficiency is why reptiles dominate many tropical ecosystems — they can sustain large populations on limited food resources. Mrin's house provided Bornali with both warmth and a steady supply of rats, making it an ideal habitat.
Key idea: Pythons are ectotherms that regulate body temperature by moving between warm and cool environments rather than generating internal heat. This requires only 10% of the food a same-sized mammal needs, making them extremely energy-efficient predators.
Mrin's father described Bornali as a "helper" because she ate the rats that raided the family's rice store. This is an example of biological pest control — using a natural predator to control a pest population. The relationship between pythons and rats is a classic predator-prey dynamic that follows predictable ecological patterns.
When rat populations are high (abundant food in rice stores, for example), conditions are favorable for python survival and reproduction — more prey means more energy for growth and egg production. As the python consumes rats, the rat population declines. With fewer rats, the python may eventually move on or eat less frequently. If the python were removed, the rat population would rebound, potentially causing significant crop damage.
This natural balance is far more sustainable than using rat poison, which has cascading negative effects. Poison kills not only rats but also the animals that eat poisoned rats — owls, hawks, snakes, and even domestic cats. This phenomenon is called secondary poisoning or bioaccumulation. By contrast, a python controlling rats has zero environmental side effects. Studies in Southeast Asia have shown that rice fields with healthy snake populations lose significantly less grain to rodents than fields where snakes have been killed. Bornali was providing a free, chemical-free, perpetual pest control service — worth potentially thousands of rupees in saved rice every year.
Key idea: Pythons act as natural pest controllers, eating rats that damage stored grain. This biological control is more sustainable than poison, which causes secondary poisoning in the food chain. A single python can save significant quantities of rice annually.
Access all 130+ lessons, quizzes, interactive tools, and offline activities
Kaziranga National Park is home to two-thirds of the world's one-horned rhinoceroses, along with tigers, elephants, wild buffalo, and hundreds of othe...
Movies show pythons crushing prey to pulp. The reality is far more elegant. A python strikes, grabs with backward-curving teeth (for grip, not damage)...