This example from your Docs»Step by step»Scripting (continued)
doesn't work:
A simple way to test this is to create a scene with a single Label node, with the following script:
extends Label
var accum=0
func _process(delta):
accum += delta
text = str(accum) # text is a built-in label property
enter link description here