Creating polygon from list of coordinates: QgsGeometry.fromPolygon has unexpected type list

I do have a script that collects coordinates from map canvas clicks and stores them in a list called coordinates. Now I want to create a feature, set its geometry and attributes and add the featu...