Hi André Schuck
You could make a list of the boroughs and loop through it to get the first result for each geocode:
from arcgis.geocoding import geocode
boroughs = ['Manhattan', 'Bronx', 'Staten Island', 'Queens', 'Brooklyn']
for borough in boroughs:
print(f"{borough.upper()}\n{'=' * 50}")
b_geocode = geocode(borough)
print(f"{':2}{b_geocode[0]['location']}")
QUEENS
==================================================
{'x': -73.82998999999995, 'y': 40.714000000000055}
MANHATTAN
==================================================
{'x': -74.00600999999995, 'y': 40.714500000000044}
STATEN ISLAND
==================================================
{'x': -74.07526999999999, 'y': 40.64242000000007}
BRONX
==================================================
{'x': -73.92308999999995, 'y': 40.82600000000008}
BROOKLYN
==================================================
{'x': -73.99035999999995, 'y': 40.692450000000065}