subject

In convert. py, 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.
A main function that tests the conversion function with numbers in several bases has been provided.

An example of main and correct output is shown below:


In convert.py, define a function decimalToRep that returns the representation of an integer in a gi

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:30
Larry sent an email to andy. andy didn't open larry's email but still understood what the message was. how did andy determine the message without opening the email?
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
You need a reliable network for about twenty-five computers that will be distributed across a large building. it is important that the network be relatively cheap. which topology should you use?
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
You know the right answer?
In convert. py, define a function decimalToRep that returns the representation of an integer in a gi...
Questions
question
Biology, 28.10.2020 16:40
Questions on the website: 13722367