Since you will be dealing with multiple objects then nested dictionaries are best used for your purposes.
var notes = Dictionary()
onready var n = preload("res//:rut_of_note.tscn")
func _ready():
var note = Dictionary()
note.instance = n.instance()
note.color = 1
#instance has to be part of the scentree to get its position
get_parent().add_child(note.instance)
note.pos = note.instance.global_position
#add note to notes dictionary using its instance id as reference
notes[str(note.instance.get_instance_id())] = note
You can print the notes
dictionary as a whole
print(notes)
Or with line formatting
for _note in notes:
print(_note)
Or the way you had it before
for _note in notes:
print(_note.instance)
print("note.position =", _note.pos)
print("note.color =", _note.color)