Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. steven@steven-AMD-phenom-955:~/Programming/InheritanceCalc$ python3.2 InheritanceCalc.py
  2. Enter the name of the phenotype being tested for
  3. Albinoism
  4.  
  5. Is the phenotype dominant or recessive (D or R)?
  6. R
  7.  
  8. How many generations? (2 or 3)
  9. 2
  10.  
  11. How many possible genotypes does parent 1 have? (blank for 1)
  12. 1
  13.  
  14. How many possible genotypes does parent 2 have? (blank for 1)
  15. 2
  16.  
  17. Enter the genotype of parent 1
  18. aa
  19.  
  20. Enter the 1st genotype of parent 2
  21. AA
  22.  
  23. Enter the 2nd genotype of parent 2
  24. Aa
  25.  
  26. Parent 1 genotype 1, parent 2 genotype 1.
  27. Probability of child having genotype AA is 0%.
  28. Probability of child having genotype Aa is 100%.
  29. Probability of child having genotype aa is 0%.
  30.  
  31. Probability of child having 'Albinoism' is 0%.
  32. Probability of child not having 'Albinoism' is 100%.
  33.  
  34.  
  35. Parent 1 genotype 1, parent 2 genotype 2.
  36. Probability of child having genotype AA is 0%.
  37. Probability of child having genotype Aa is 50%.
  38. Probability of child having genotype aa is 50%.
  39.  
  40. Probability of child having 'Albinoism' is 50%.
  41. Probability of child not having 'Albinoism' is 50%.
  42.  
  43.  
  44. ------------------------------- -------------------------------
  45. | Parent 1 | | Parent 2 |
  46. | AA:0 Aa:0 aa:100 | | AA:33 Aa:67 aa:0 |
  47. | Albinoism+:100 Albinoism-:0 |---| Albinoism+:0 Albinoism-:100 |
  48. ------------------------------- | -------------------------------
  49. |
  50. -------------------------------
  51. | Child |
  52. | AA:0 Aa:80 aa:20 |
  53. | Albinoism+:20 Albinoism-:80 |
  54. -------------------------------
  55.  
  56.  
  57. How many generations? (2 or 3)
  58. ^CTraceback (most recent call last):
  59. File "InheritanceCalc.py", line 244, in <module>
  60. generations = int(input("How many generations? (2 or 3)\n"))
  61. KeyboardInterrupt
  62. steven@steven-AMD-phenom-955:~/Programming/InheritanceCalc$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement