Status: Not Started
Font Size
14
Parentheses autocomplete
Wrap lines
Editor
Theme
Code with blocks by default
Console Font Size
12
Console Theme
Show File Tab Bar
9 determine_genotype Function
main.py
"""
This program computes and depicts a Punnett Square for a monohybrid cross.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output
Docs
Exercise
More
 
This student is viewing this assignment in English. View this page in English?

5 points

Complete the determine_genotype function to print each genotype.

Print the genotypes in each of the four boxes by combining the letter on top (given by allele1) with the letter on the left (given by allele2).

The function is already being called, with the following numbers being given to the determine_genotype function as the parameters first and second:

  • 0,0
  • 0,1
  • 1,0
  • 1,1

*Hint!: These parameter values are being used to index the allele strings!

Make sure that the allele given by allele1 stays blue and the allele given by allele2 stays red!

Reset Code

Slides and Notes

About

Python (turtle)
Skulpt 1.0.0, Python 2.x

Upload Media