I have the following code:
for inc in range(0, ninc+1)+range(ninc-1,-1,-1):
But it gives me such an error:
for inc in range(0, ninc+1)+range(ninc-1,-1,-1):
TypeError: unsupported operand type(s) for +: 'range' and 'range'
I am using Python 3.3.2. Any suggestions?