Now that we have the created the input neuron and the leaky-intagrate and fire neuron we want to connect them by the synapse. This is as easy as:
>>> syn_handle = net.connect( inp_handle, nrn_handle, syn_model )
The effect of the above command is that an object instance based on syn_model is created and a handle to it is returned.