top of page


CS50 Week 6 Python — Rewriting C Problems in Python and DNA Profiling with STR Matching
CS50x Week 6 is where the language switches from C to Python — and the difference is immediately obvious. The first four problems are sentimental re-implementations of earlier weeks, rebuilt in far fewer lines, while DNA is a brand-new challenge: a profiling program that reads STR counts from a CSV database and matches them against a DNA sequence to identify an individual. Here is how all five problems came together and what the language switch actually teaches you.
Parsa Dev
Feb 13 min read
bottom of page
