I have this code
from opensky_api import OpenSkyApi
api = OpenSkyApi()
states = api.get_states(bbox=(51.3500, 51.5900, -0.6342, -0.2742))
for s in states.states:
    lat = s.latitude
    print(lat)
and the output looks like this
51.4775
51.4589
51.4774
51.4774
how do I make the output look like this?
[51.4775, 51.4589, 51.4774, 51.4774]
 
     
     
     
    