HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClassesGroups

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Blog

Account

  • Dashboard
  • My Content
  • Profile
  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Python for Science and Maths
  3. /Biology by Computer

Biology by Computer

Python Programming
+ Upload a Problem
More in Python for Science and MathsNumPy ArraysGraphs with matplotlibSolving EquationsCalculus by ComputerSimulation and RandomnessData Analysis with pandasChemistry by ComputerBiology by Computer
21 problems
Type:
1.
Meera runs a simulation of 100 crosses twice and gets two different counts. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy
2.
Dev simulates Tt with tt using random.choice(mum) + random.choice(mum), where mum = "Tt" and dad =… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
3.
A program crosses Tt with Tt for 2000 plants. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy
4.
In RrYy with RrYy, each gene alone gives a 3:1 ratio. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Medium
5.
A round yellow plant is crossed with rryy. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Hard
6.
Mendel's RrYy with RrYy cross gave 315 round yellow, 108 round green, 101 wrinkled yellow and 32… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Medium
7.
A plant is RRYy. Its gametes come from product(g[:2], g[2:]). New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Easy
8.
Kiran writes def phenotype(g): return "tall" if g == "TT" else "short" and counts the phenotypes of… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Medium
9.
In the second generation, Mendel counted 787 tall and 277 short pea plants. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Medium
10.
Ravi's program joins the gametes with a + b but forgets to sort them. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Easy
11.
Sana has a tall pea plant and does not know if it is TT or Tt. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by ComputerStemPy LabStemPy Lab
Easy
12.
Duckweed spreads over a village pond. Nisha counts the fronds every 3 days: Fit a logistic curve… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Hard
13.
Ritu fits a straight line to her counts with slope, intercept = np.polyfit(t, np.log(N), 1), with t… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
14.
A culture has 3000 cells at 10:00 and 48 000 cells at 12:00. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy
15.
Counts of a yeast culture every hour are 50, 100, 195, 360, 560, 700 and 760 cells. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy
16.
Sanjay steps a logistic population with r = 0.8 per hour, K = 300 cells and N₀ = 5 cells, for 12… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
17.
A population of algae in a tank grows logistically from 20 cells, with r = 0.4 per hour and a… New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
18.
Aditi plots ln N against t in minutes for a culture with a doubling time of 40 min. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
19.
A culture starts with 400 cells and doubles every 25 minutes. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Medium
20.
A strain of bacteria grows as N = N₀ eʳᵗ with r = 1.8 per hour. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy
21.
In a culture kept by Meera's class, each Paramecium divides by binary fission about every 8 hours. New
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and RandomnessStemPy LabStemPy Lab
Easy