def cree(): return [0] * 6 def contient(s, x): paquet = x // 64 bit = x % 64 return s[paquet] & (1 << bit) != 0 def ajoute(s, x): paquet = x // 64 bit = x % 64 s[paquet] = s[paquet] | (1 << bit)