Currently, in school we are working on genetics, where we use punnet squares to determine genes and offsprings of certain parents
What it does
This code takes in genotypes (genetic code) from the parents, in order to determine phenotypes (physical traits) of their offspring. We are able to accomplish this by manipulating punnet squares logic. This code also has three of scenarios that the user can chose from, and different dominances (how the different parts of genetic code can affect the outcome for different physical traits, depending on the following dominances: complete dominance, incomplete dominance, and codominance).
How we built it
We applied the logic that we use for regular punnet squares and implemented those facts into python, as well as creating different scenarios for the user to chose from
Challenges we ran into
Challenges that we ran into include actually printing out the information presented from the punnet squares calculator, in order to solve this we used for loops and variables
Accomplishments that we're proud of
We proud of the fact that we were able to grasp the concepts of a punnet square effectively and contain the ability to implement our understanding of this concept into code, creating a calculator that can determine the outcome of certain things
What we learned
We learned that by importing codes from other programs can help improve our code or make it better or more effective, such as using the commands from the import time to space out our code and make it more manageable to read
What's next for Punnett Square Calculator
Including more scenarios for the user to chose from, and implementing different dominances
Built With
- codehs
- python

Log in or sign up for Devpost to join the conversation.