hwfreq.py

Created by elodie-gamot

Created on April 27, 2022

347 Bytes

Script à compléter afin de calculer automatiquement les fréquences génotypiques dans une population à la génération actuelle puis la suivante.


E1=int(input("E1="))
E2=int(input("E2="))
E3=int(input("E3="))
pop= ...
print("On a :")
print("f1=",round(.../pop,3))
print("f2=",round(.../pop,3))
print("f3=",round(.../pop,3))
p=(E1+0.5*E2)/pop
q=(E3+0.5*E2)/pop
print("Et à la génération suivante :")
print("f1=",round(...,3))
print("f2=",round(...,3))
print("f3=",round(...,3))