Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- steven@steven-AMD-phenom-955:~/Programming/InheritanceCalc$ python3.2 InheritanceCalc.py
- Enter the name of the phenotype being tested for
- Albinoism
- Is the phenotype dominant or recessive (D or R)?
- R
- How many generations? (2 or 3)
- 2
- How many possible genotypes does parent 1 have? (blank for 1)
- 1
- How many possible genotypes does parent 2 have? (blank for 1)
- 2
- Enter the genotype of parent 1
- aa
- Enter the 1st genotype of parent 2
- AA
- Enter the 2nd genotype of parent 2
- Aa
- Parent 1 genotype 1, parent 2 genotype 1.
- Probability of child having genotype AA is 0%.
- Probability of child having genotype Aa is 100%.
- Probability of child having genotype aa is 0%.
- Probability of child having 'Albinoism' is 0%.
- Probability of child not having 'Albinoism' is 100%.
- Parent 1 genotype 1, parent 2 genotype 2.
- Probability of child having genotype AA is 0%.
- Probability of child having genotype Aa is 50%.
- Probability of child having genotype aa is 50%.
- Probability of child having 'Albinoism' is 50%.
- Probability of child not having 'Albinoism' is 50%.
- ------------------------------- -------------------------------
- | Parent 1 | | Parent 2 |
- | AA:0 Aa:0 aa:100 | | AA:33 Aa:67 aa:0 |
- | Albinoism+:100 Albinoism-:0 |---| Albinoism+:0 Albinoism-:100 |
- ------------------------------- | -------------------------------
- |
- -------------------------------
- | Child |
- | AA:0 Aa:80 aa:20 |
- | Albinoism+:20 Albinoism-:80 |
- -------------------------------
- How many generations? (2 or 3)
- ^CTraceback (most recent call last):
- File "InheritanceCalc.py", line 244, in <module>
- generations = int(input("How many generations? (2 or 3)\n"))
- KeyboardInterrupt
- steven@steven-AMD-phenom-955:~/Programming/InheritanceCalc$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement