Supposed that hi has hi[0]~hi[200] this range , and I want to proceed if statement only if hi[0~200] are include 1. If one of hi list has rather than 1 (ex) hi[5]==2), if statement should not proceed, but else statement runs. What should I do..? if hi[0]==1 and hi[1]==1 and ... etc is this the only way?
if hi[]==1:
i =1
else:
i=2