Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
529 B
2
Indexable
Never
class carte:
  def __init__(self,valeur,famille):
      self.valeur=valeur
      self.famille=famille
      
class paquet:
    def __init__(self):
        self.deck = []
        for i in range(4):
            for k in range(14):
                self.deck.append()
    def couper(self):
        moitie = int(len (self.deck)/2)
        liste_moitie = []
        for k in range(moitie):
            liste_moitie.append(self.deck[0])
            self.deck.pop(self.deck[0])
            self.deck.append(liste_moitie[k])
            
Leave a Comment