i=5 while i > 0: код ElemMail.send_keys(i) код i -= 1 # сдвигаем значение на 1 How do i assign a string to i , i.e., to get, for example, 5_foo , on the next pass of the cycle 4_foo , 3_foo , etc.
I tried i=str(i+'_foo') - got an error:
TypeError: unsupported operand type (s) for - =: 'str' and 'int'