# Simplify code

I have asked in here, but I still don't know how to simplify following code

{\z1,\z2,...,\z100}::Weight(label=field, value=0);


I have tried

for i in range(101):
Weight(Ex(r'\y'+str(i)),label=field, value=0)


and

for i in range(101):
Ex(r'\y'+str(i)+r'::Weight(label=field, value=0)')


but they don't work. How to implement it？

edited

Follow the example in a previous post

It was a simple application of the same philosophy:

for i in range(101):
LaTeXForm(Ex(r'z'+str(i)+r'{#}'), Ex(r'"z_{'+str(i)+r'}"') )
Weight(Ex(r'z'+str(i)+r'{#}'), Ex(r'label=field, value=1') )

ex := z1 z2 + z63;
keep_weight(ex, $field=2$);