cs50/python-cs50

This is CS50's library for Python.

Python

868

337 commits

updated Sep 5, 2026

See the code

README

CS50 Library for Python

Installation

pip3 install cs50

Usage

import cs50

...

f = cs50.get_float();
i = cs50.get_int();
s = cs50.get_string();

Testing

  1. In one terminal, execute:

    cd python-cs50
    docker compose build
    docker compose up
    
  2. In another terminal, execute:

    docker exec -it python-cs50 bash -l
    

    And then execute, e.g.:

    python tests/sql.py
    

cs50/python-cs50

This is CS50's library for Python.

Python

868

337 commits

updated Sep 5, 2026

See the code

README

CS50 Library for Python

Installation

pip3 install cs50

Usage

import cs50

...

f = cs50.get_float();
i = cs50.get_int();
s = cs50.get_string();

Testing

  1. In one terminal, execute:

    cd python-cs50
    docker compose build
    docker compose up
    
  2. In another terminal, execute:

    docker exec -it python-cs50 bash -l
    

    And then execute, e.g.:

    python tests/sql.py
    

Project health

Overall

3.7/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

PyPI

Latest release

9.5.0 · Jan 22, 2026

Releases this year

1

Significant stargazers

yukawithdata

39 followers · starred Apr 2026