I need to create a list of lists which can split a large string by newline first and then semi colon. I have a list of strings by splitting input by newline. I need to now take those elements in that list and split them by semi colon but is not letting me split again.
AttributeError: 'list' object has no attribute 'split'
items = sys.stdin.read()
collectionList = [(items.split('\n'))]
for item in collectionList:
item.split(':')