Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michel Newsgroups: fr.comp.lang.python Subject: Re: Tricher au scrabble... Date: Tue, 28 Nov 2023 17:52:42 +0100 Organization: A noiseless patient Spider Lines: 9 Message-ID: <87y1eh4ydw.fsf@gnus.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: dont-email.me; posting-host="81a25e65b4969cd32590add3d06e4e17"; logging-data="386521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rPets3jSQcLJqR6AsBfs+" User-Agent: Gnus Cancel-Lock: sha1:l2qGt1LfaNrQWMHNzB1q1IyUd0c= sha1:HKahV2RFtxy9srM95uAR5fTqQhg= Mail-Copies-To: never Bytes: 1309 Le 28 novembre 2023 Dominique a =C3=A9crit : > if lettres in scrabble.keys(): > print(scrabble[lettres]) De passer par un dict =C3=A7a impose que tu n'auras toujours qu'un seul mot fourni pour un ensemble de lettres. Je ne pense pas que ce soit le mieux pour jouer. Et de plus si tu as des lettres suppl=C3=A9mentaires qui ne rentrent pas dans un mot tu n'obtiendras aucun r=C3=A9sultat.