I have been using this script to select a feature using Python:
layer = iface.activeLayer()
layer.selectByExpression('\"Declividad\"= value', QgsVectorLayer.SetSelection)
selection = layer.selectedFeatures()
But now, I need to select the values for Declividad from a list.
For exemple: list = [10,11,12], so I want to select the values 10,11 and 12 for Declividad.
How could I do that?