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


Groups > it.comp.lang.python > #7658

Re: Iterazione ciclo for

Path csiph.com!news.fcku.it!bofh.it!tornado.fastwebnet.it!53ab2750!not-for-mail
Subject Re: Iterazione ciclo for
Newsgroups it.comp.lang.python
References <txYXy.45037$pt.38492@tornado.fastwebnet.it>
From Smith <smith@smith.it>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version 1.0
In-Reply-To <txYXy.45037$pt.38492@tornado.fastwebnet.it>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
Lines 27
Message-ID <%eZXy.45038$pt.17818@tornado.fastwebnet.it> (permalink)
Date Mon, 9 May 2016 12:02:35 +0200
NNTP-Posting-Host 93.38.253.7
X-Complaints-To newsmaster@fastweb.it
X-Trace tornado.fastwebnet.it 1462788155 93.38.253.7 (Mon, 09 May 2016 12:02:35 CEST)
NNTP-Posting-Date Mon, 09 May 2016 12:02:35 CEST
Xref csiph.com it.comp.lang.python:7658

Show key headers only | View raw


On 09/05/2016 11:14, Smith wrote:
> Ciao,
> mi aiutate a risolvere questa iterazione?
> Grazie
>
> linguaggi = input("Inserisci il linguaggio o più linguaggi che utilizzi:")
> def dev(linguaggi):
>      a = [linguaggi]
>      print(a)
> #ciclo per l'estrazione dei valori dall'argomento
>      for linguaggio in a:
>          print('Io sviluppo in',linguaggio)
>
> dev(linguaggi)
>
> Inserisci il linguaggio o più linguaggi che utilizzi:python php
> ['python php']
> Io sviluppo in python php
>
>
> Vorrei ottenere questo risultato :
>
> Inserisci il linguaggio o più linguaggi che utilizzi:python php
> ['python php']
> Io sviluppo in python
> Io sviluppo in php
  Ho risolto

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


Thread

Iterazione ciclo for Smith <smith@smith.it> - 2016-05-09 11:14 +0200
  Re: Iterazione ciclo for Smith <smith@smith.it> - 2016-05-09 12:02 +0200

csiph-web