TypeError: argument of type 'int' is not iterable hatası

O halde bu iki yöntem de işinize yarıyor :

def control_num(*num) :
	return 1 in num

my_num_list = [0,1,0,1,0,1,0,1,0,1,1,0,1,0,1]

result = list(map(control_num,my_num_list))
print(result)


2 Beğeni