Skip to content

cs50/python-cs50

Repository files navigation

CS50 Library for Python

Build Status

Supports Python 2 and Python 3.

Development

Requires Docker Engine.

make bash
make deb # builds .deb

Installation

  1. Download the latest release per https://github.com/cs50/python-cs50/releases
  2. Extract python-cs50-*
  3. cd python-cs50-*
  4. make install

Usage

import cs50

...

c = cs50.get_char();
f = cs50.get_float();
i = cs50.get_int();
l = cs50.get_long(); # Python 2 only
s = cs50.get_string();

TODO

  • Add install target to Makefile.
  • Conditionally install for Python 2 and/or Python 3.
  • Add targets for pacman, rpm.
  • Add tests.