In this problem, you are asked to implement a function called multi column print with two parameters: a list L and an integer numcols. The list L has an arbitrary number of items (each item can be any built-in object, such as integer, real, list, string etc.). Your function should display the items in L equally distributed in numcols columns. You should ensure that the columns are neatly formatted and aligned by using string formatting with a suitable field width. Some sample runs are shown below.

>>> from problem1 import *
>>> L = [[1, 2, 3, "abc"], "hello", [10, 20, 30], ’a’, 45, 27, 99, 4.5, 3.14159]

>>> multi_column_print(L, 3)
[1, 2, 3, ’abc’]  hello  [10, 20, 30]
a 45 27
99 4.5 3.14159


>>> L = [2**i for i in range(20)]
>>> multi_column_print(L, 5)

    1     2      4      8     16
32 64 128 256 512
1024 2048 4096 8192 16384
32768 65536 131072 262144 524288


>>> multi_column_print(L, 7)

    1     2     4      8     16     32   64
128 256 512 1024 2048 4096 8192
16384 32768 65536 131072 262144 524288


>>> multi_column_print(L, 2)

     1      2
4 8
16 32
64 128
256 512
1024 2048
4096 8192
16384 32768
65536 131072
262144 524288
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.