Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > fr.comp.lang.python > #3178
| Newsgroups | fr.comp.lang.python |
|---|---|
| Subject | Matrices |
| From | Ju32700 <nospam_julien.barre75@orange.fr.invalid> |
| Organization | !No_Organization! |
| Message-ID | <_tadnd2-S9NWph3BnZ2dnUU798zNnZ2d@giganews.com> (permalink) |
| Date | 2019-03-06 15:29 -0600 |
Bonjour, j'aurais besoin d'aide pour mon programme en Python s'il vous plait : ##def lignecomplete(M): # M est une matrice carrée d'ordre n ## # Si une des lignes est complète, le programme renvoie "Vrai" ## # Sinon, il renvoie "Faux" Il faut que l'une des lignes soit uniquement rempli de 1 pour renvoyer "True" Si je fais >>lignecomplete([[1,1,1],[1,1,1]]) True Sinon >>lignecomplete([[1,1,0],[1,0,1]]) False
Back to fr.comp.lang.python | Previous | Next — Next in thread | Find similar
Matrices Ju32700 <nospam_julien.barre75@orange.fr.invalid> - 2019-03-06 15:29 -0600 Re: Matrices Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2019-03-07 07:01 +0100 Re: Matrices Pierre Maurette <maurette.pierre@free.fr> - 2019-03-07 08:11 +0100 Re: Matrices ast <none@gmail.com> - 2019-03-07 09:45 +0100
csiph-web