Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

must be done in python ot cpeve code in yoif solution 9.Use IDLE to write a prog

ID: 3715372 • Letter: M

Question

must be done in python

ot cpeve code in yoif solution 9.Use IDLE to write a program that contains a "helper" function called convert_ to base that accepts two parameters: 1) a number in base 10, and 2) the base that the first parameter should be converted to. The helper function should work when the second parameter is 2 or 16. For example, calling convert to base(26, 2) should return the string "11010", and calling convert to base(26, 16) should return the string "IA" The main function should allow the user to enter a number in base 10. The main function should use a loop to create a table with a row for each number from 1 to the number specified by the user. Each row of the table should have 3 columns to display the number in base 10, base 2, and base 16. Once you have the program generating output to the screen correctly, modify it to ask the user whether he/she wants the output written to the screen, to a file (called table.txt), or both. Please zip up your Project folder into a single file called Project.zip and upload it to the appropriate dropbox on eLearn.

Explanation / Answer

Here it is the python code