Path: csiph.com!aioe.org!tTqkpX7q/zQujZ+pQ3+Itg.user.gioia.aioe.org.POSTED!not-for-mail From: Dominique Newsgroups: fr.comp.lang.python Subject: =?UTF-8?Q?Re=3a_D=c3=a9butant=2e_Formatage_de_input=2e_Python_3=2e8?= Date: Sun, 3 Jan 2021 11:44:14 +0100 Organization: Aioe.org NNTP Server Lines: 20 Message-ID: References: <87sg7ieade.fsf@izac.org> NNTP-Posting-Host: tTqkpX7q/zQujZ+pQ3+Itg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: fr Xref: csiph.com fr.comp.lang.python:3435 Le 03/01/2021 à 08:40, Benoit Izac a écrit : > Oui, ça s'appelle les f-strings, ça a été introduit avec la version 3.6 > de Python : > > > > input(f'Donnez la valeur n°{x}') > > NB : Ce n'est pas spécifique à input(). > Ah oui, c'est ça. Merci beaucoup, j'avais oublié. Et bonne année :-) -- Dominique Courriel : dominique point sextant ate orange en France Esto quod es