I am trying to solve an exercise. I should write a function that takes a list of integers, converts it to a string of numbers displayed vertically.
mylist = [5,69,2090]
the function should return/print the following string:
2
0
6 9
5 9 0
I tried to solve it with the following code, but it doesn't help me
def printstring(mylist):
h = len(mylist)//3
for i in range(h):
print(mylist[i],mylist[h+i],l[h+i+1])