Path: csiph.com!news.mixmin.net!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?D=c3=a9butant=2e_Formatage_de_input=2e_Python_3=2e8?= Date: Sun, 3 Jan 2021 05:20:03 +0100 Organization: Aioe.org NNTP Server Lines: 18 Message-ID: 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 X-Mozilla-News-Host: news://news.aioe.org:119 Xref: csiph.com fr.comp.lang.python:3433 Bonjour, Je crois me souvenir qu'il y a un formatage particulier d'input qui permet d'introduire des paramètre du style : input('Donnez la valeur n°{x}') Sachant que {x} est, par exemple, un élément de for x in range(1,10) Je ne sais plus comment on présente input en une seule ligne. Pas de problème en deux lignes avec print('Valeur de ',x) puis le input(). Je vous remercie, -- Dominique Courriel : dominique point sextant ate orange en France Esto quod es