def net(x, i=0, result=''):
if i == x + 1:
return result
if i in (0, x // 2, x):
result += '+ - - - - + - - - - +\n'
else:
result += '| | |\n'
return net(x, i + 1, result)
print(net(10))# your code goes here
ZGVmIG5ldCh4LCBpPTAsIHJlc3VsdD0nJyk6CglpZiBpID09IHggKyAxOgoJCXJldHVybiByZXN1bHQKCWlmIGkgaW4gKDAsIHggLy8gMiwgeCk6CgkgICAgcmVzdWx0ICs9ICcrIC0gLSAtIC0gKyAtIC0gLSAtICtcbicKCWVsc2U6CgkgICAgcmVzdWx0ICs9ICd8ICAgICAgICAgfCAgICAgICAgIHxcbicKCXJldHVybiBuZXQoeCwgaSArIDEsIHJlc3VsdCkKCQoJCnByaW50KG5ldCgxMCkpIyB5b3VyIGNvZGUgZ29lcyBoZXJl