Step-by-step explanation:
for(int i =0;i<list.size();i++){
list[i]=i%2;
}
for i in range(len(list)):
list[i]=i%2
5.8m questions
7.5m answers