Skip to content

Files

Latest commit

b629b6d · Apr 5, 2025

History

History
41 lines (28 loc) · 458 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 458 Bytes

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