Re-Internalise Data with a boolean

With python, i amble to write data using python as below.

image

But, what if i wish to write to store the data in a panel or a data component. If so, how to call internalise data with python to write a new line when reading from it?