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
7.9m questions
10.5m answers