Skip to content

cs50/python-cs50

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d1de3ba · Oct 3, 2016

History

2 Commits
Oct 3, 2016
Oct 3, 2016
Oct 3, 2016
Oct 3, 2016
Oct 3, 2016

Repository files navigation

CS50 Library for Python

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/lib50-python/releases
  2. Extract lib50-python-*
  3. cd lib50-python-*
  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 comments.
  • Decide whether to allow . as input for get_float.
  • Add targets for pacman, rpm.
  • Add tests.