The weights are created when the model first sees some input data:

Once a model is "built", you can call its summary() method to display its contents:

model.summary()

However, it can be very useful when building a Sequential model incrementally to be able to display the summary of the model so far, including the current output shape