Modify and improve | SoloLearn: Learn to code for FREE!


Modify and improve

Rewrite this code to produce a more concise version

5 Answers

New Answer


Nwanakwoakwo Wid'obiagu print(*[('\n'+''.join(r)) for r in list(zip(*grid))])



~ swim ~ [print(''.join(i)) for i in zip(*grid)]


Diego Thank you 🙏 for squeezing(sic) it further. My Python is still not that strong as some of you guys. Damn! There are just too many ways to do things in python, it just voilates it's own Zen 😁


use this code: for j in range(0,6): x=' ' for i in range(0,len(grid)): x+=grid[i][j] print(x)