Blender Text field multiple line I can add a text field to blender go to edit mode and add more text and hit return at the end of each line to get more lines and go back to object mode and  object is a single object.
How can I use a python script to do the same. in other words I like the following on the screen
Line1 some text
Line2 more text
Line3 more text
.etc
all as one text object.
import bpy
bpy.ops.object.text_add()
ob = bpy.context.object
ob.data.body = &quot;&quot;&quot;Line1 some text
Line2 more text
Line3 more text&quot;&quot;&quot;

&quot;&quot;&quot; in Python denotes a multiline string. You can also Just use the newline character \n:
ob.data.body = &quot;Line1 some text\nLine2 more text\nLine3 more text&quot;

as well as many other techniques: Pythonic way to create a long multi-line string