The string ‘split’ function takes a seprarator as an argument (https://docs.python.org/2/library/stdtypes.html#str.split).
You might want to call the function like this:
value = "hello:world:how:are:you".split(":")
And it will give you a list of items:
['hello','world','how','are','you']
You can access them by simply using their index like this:
value[0] # is 'hello'
value[1] # is 'world'
and so on.
solved Python – Read and split every “:” and add into value