+2

Modify and improve

Rewrite this code to produce a more concise version https://code.sololearn.com/cCgkCUygzY54/?ref=app

11/13/2019 9:24:35 AM

Nwanakwoakwo Wid'obiagu

5 Answers

New Answer

+6

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

+5

https://code.sololearn.com/cL8E0Irn8fA0/?ref=app

+3

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

+2

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 😁

0

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