Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from icecream import ic
- n = '''1 2 3
- 4 5 6
- 7 8 9
- 5 4 3'''
- n1 = [ic([j for j in i.split()]) for i in n.split('\n')]
- # for x in range(len(n1[0])):
- # ic([n1[row][x] for row in range(len(n1))])
- print(*[[n1[row][x] for row in range(len(n1))] for x in range(len(n1[0]))])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement