Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.python > #3800

Re: Très très débutant - merci pour l'aide

Path csiph.com!pasdenom.info!news.izac.org!reader
From Benoit Izac <use.reply.to@INVALID.ADDRESS>
Newsgroups fr.comp.lang.python
Subject Re: Très très débutant - merci pour l'aide
Date Fri, 08 Apr 2022 12:52:22 +0200
Message-ID <877d7zq23d.fsf@izac.org> (permalink)
References <QeydndQb0pPbC2P8nZ2dnUU7_83NnZ2d@giganews.com> <87v8xt5bpe.fsf@izac.org> <slrnt4ujqd.1e076.lulu042@valentino.Rock-n-Roll.org>
Reply-To benoit.izac@free.fr
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Info keg.izac.org; logging-data="2216193"; mail-complaints-to="usenet@izac.org"
Xref csiph.com fr.comp.lang.python:3800

Show key headers only | View raw


Bonjour,

Le 07/04/2022 à 22:53, Lulu a écrit dans le message
<slrnt4ujqd.1e076.lulu042@valentino.Rock-n-Roll.org> :

>>>                print = input ('1, 2 ou 3 ?')
>>
>>  Là, tu viens de redéfinir la fonction print… Tu ne peux plus
>>  l'utiliser ensuite comme avant puisque l'identifiant pointe sur une
>>  chaîne de caractère.
>
> Est-ce que la solution ne serait pas de supprimer cette dernière ligne

Oui, tout simplement. Je pense que c'est un « print('1, 2 ou 3 ?') » qui
s'est transformé malencontreusement.

-- 
Benoit Izac

Back to fr.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

Tr�s tr�s d�butant - merci pour l'aide DeMonteRobert <nospam_r.demonte69@gmail.com.invalid> - 2022-02-05 09:22 -0600
  Re: Très très débutant - merci pour l'aide Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-02-05 20:56 +0100
    Re: Très très débutant - merci pour l'aide Lulu <lulu042@fry.fr.invalid> - 2022-04-07 22:53 +0200
      Re: Très très débutant - merci pour l'aide Benoit Izac <use.reply.to@INVALID.ADDRESS> - 2022-04-08 12:52 +0200

csiph-web