I am trying to create a loop to rename the fields of my attribute table. The fields should start at 1 and increment by one until the end of the table (e.g. 1,2,3,4,5,...,n)
my code on the python shell works fine, but not in QGIS, why?
Can anyone help me?
def loop (x): num = 1 while num < x: print num num += 1 loop(188)