`fromPointXY` creates a new geometry from a [`QgsPointXY`](https://qgis.github.io/pyqgis/3.4/core/QgsPointXY.html#module-QgsPointXY) object which is created by providing two coordinates:


    feat.setGeometry(QgsGeometry.fromPointXY(QgsPointXY(coords[0], coords[1])))