kontrol=0 tek=[] cift=[] while kontrol<10: kontrol+=1 sayi=input("bir sayi girin: ") if sayi not in tek or cift: if sayi%2==0: cift.append(sayi) print cift else: tek.append(sayi) print tek
kontrol=0 tek=[] cift=[] while kontrol<10: kontrol+=1 sayi=input("bir sayi girin: ") if sayi not in tek or cift: if sayi%2==0: cift.append(sayi) print cift else: tek.append(sayi) print tek