Apr-27-2020, 10:02 AM
Here is the basic code.
for a in range(1, 5):
for b in range(0+[a*2]-2],2*a)
print(b)
It shows error unsupported operandtype(s) for -: 'list' and 'int'
I have tried everything, it seems that in the range of second for loop 'a' which is 'int'type becomes 'list'
Please help
for a in range(1, 5):
for b in range(0+[a*2]-2],2*a)
print(b)
It shows error unsupported operandtype(s) for -: 'list' and 'int'
I have tried everything, it seems that in the range of second for loop 'a' which is 'int'type becomes 'list'
Please help