# [Python 3.8 (pre-release)], <s> 263 </s> <s> 243 </s> <s> 229 </s> <s> 226 </s> <s> 225 </s> <s> 187 </s> <s> 168 </s> <s> 151 </s> 150 bytes
*-20 bytes by applying some small modifications.*
*-14 bytes by emanresu A.*
*-3 bytes by noodle person.*
*-75 bytes by ASCII-only.*
*-1 byte by noodle person.*
…Okay, what—
<!-- language-all: lang-python -->
def f(b,c=[]):
for i in b:c+=[0,1,2][i::2]
for i in range(l:=len(c),-1,-1):print(" "*i+" /"[[0,*c][i]]+" \\"[i>0]+" \\"*(i<l)+" /"[[*c,0,0][i+1]])
[Try it online!][TIO-lxudpesd]
[Python 3.8 (pre-release)]: https://docs.python.org/3.8/
[TIO-lxudpesd]: https://tio.run/##TY3BCsIwEETvfsWSU5KumNSLhNYfSfdgY6MLJS2hF78@pqggLMswb3Z2fW3PJZ0vay7lPkWIcsTQe1LuAHHJwMAJRhea3hu02JJn51r6g/mWHpOcXT9PSQaFR1tHuTVz2qQAobkRACfha4EO9Z6oGsMgPF/NV2rJ3ax@OR3QoKnJxhKpEqW3uD//7B2p8gY "Python 3.8 (pre-release) – Try It Online"