My achievement
I completed CS50’s Introduction to Programming with Python (CS50P), offered by Harvard, with a perfect score and earned a certificate. This is a milestone I want to include alongside the projects and leadership experiences in my portfolio.
Course contents
The course focuses on programming with Python: functions and variables, conditionals, loops, exceptions, libraries, unit tests, file input/output, regular expressions, and object-oriented programming. It includes hands-on problem sets and a final project.
Related code
For my final project, I built Random Fit Generator, a command-line Python program that helps users choose outfits from clothes they own. Users can add clothing, view their closet, generate an outfit, and revisit saved outfits.
I represented each clothing item as a dictionary containing its brand, item name, and category. The program chooses a top, bottom, and pair of shoes at random, with a 50% chance of adding outerwear when available. I separated the clothing inventory and outfit history into two text files so they persist between sessions, and added timestamps to saved outfits.
I handled invalid clothing categories and missing required items explicitly. If a required category is empty, the program reports it and does not save an incomplete outfit. My test file checks adding an item, generating an outfit, and saving output; the item-entry test still requires manual input.
Video demo: Watch the video below