Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for x in AC_temp:
- if "," in x: #multiple values
- val= x.split(",")
- print(val)
- ['187', '22']
- ['754', '17']
- ['417', '7']
- ['819', '13']
- ['606', '1']
- ['123', '513']
- for x in AC_temp:
- if "," in x:
- val= x.split(",")
- for t in val:
- AC.append(map(int, t))
- else:
- AC.append(map(int, x)
- #print output#
- for i in AC:
- print(i)
- [1, 8, 7]
- [2, 2]
- [7, 5, 4]
- [1, 7]
- [4, 1, 7]
- [7]
- [8, 1, 9]
- [1, 3]
- [6, 0, 6]
- [1]
- [1, 2, 3]
- [5, 1, 3]
Add Comment
Please, Sign In to add comment