Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- SIZE = 3
- print("Enter a 3 by 3 matrix row by row: ")
- m = []
- for i in range(SIZE):
- line = input().split()
- m.append([eval(x) for x in line])
- print("The column-sorted list is ")
- sortCols(m)
- def sortCols(m):
- result = []
- real = []
- for row in m:
- result.append(row)
- print(result)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement