Assign value node default values

Im setting up a material in python. How do i set the default value of the value node in blender?
Is there a way to list the properties of the node, as there is little info on the blender documentation that I can find…

# world pos value node
world_position = nodes.new('ShaderNodeValue')
world_position.label = 'World Position'
world_position.location = (-600,0)
import bpy

nodes = bpy.context.scene.world.node_tree.nodes
world_position = nodes.new('ShaderNodeValue')
world_position.label = 'World Position'
world_position.location = (-600,0)
world_position.outputs[0].default_value = -600.0

# to list the properties of the node
print(dir(world_position))
1 Like