Skip to content

Instantly share code, notes, and snippets.

View reemalnaji's full-sized avatar

Reem Alnaji reemalnaji

View GitHub Profile
@reemalnaji
reemalnaji / Ch5_Ex6.py
Created November 12, 2020 02:56 — forked from eguyd/Ch5_Ex6.py
A main function that tests the conversion function with numbers in several bases.
"""
Define a function decimalToRep that returns the representation of an integer in a
given base. The two arguments should be the integer and the base. The function
should return a string. It should use a lookup table that associates integers with
digits. Include a main function that tests the conversion function with numbers
in several bases.
"""