Please enable JavaScript to use CodeHS

Punnett Square Generator

Students will use Turtle Graphics in Python to create their own Punnett Square generator. This course is designed for students who have taken or are taking a biology course. The approximate length of this course is 2-4 hours.

Overview & Highlights

Level
High School
Contact Hours
3
Timeframe
Unit

Course Overview

To view the entire syllabus, click here or click to explore the full course.

Punnett Square Generator
Explore how we can use a computer to perform calculations by creating your own Punnett Square generator! You will use Turtle Graphics in Python to place images and text on a canvas and then use if/else statements, string indexing, and string methods to print the resulting genotypes from each allele pair.

6
Lessons
6
Videos
6
Exercises

Demo Programs

Explore programs that your students will build throughout this course!

Customizable Assignments

Create and organize Assignments in any CodeHS course that you're teaching. You can even add custom assignments to pre-existing CodeHS courses.

Learn More

Actions for Teachers

Didn’t find what you were looking for? Here are a few links that might be useful to you.