Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.python > #7657
| Path | csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!takemy.news.telefonica.de!feedme.news.telefonica.de!telefonica.de!diesel.cu.mi.it!bofh.it!tornado.fastwebnet.it!53ab2750!not-for-mail |
|---|---|
| Newsgroups | it.comp.lang.python |
| X-Mozilla-News-Host | news://news.fastwebnet.it:119 |
| From | Smith <smith@smith.it> |
| Subject | Iterazione ciclo for |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Lines | 25 |
| Message-ID | <txYXy.45037$pt.38492@tornado.fastwebnet.it> (permalink) |
| Date | Mon, 9 May 2016 11:14:01 +0200 |
| NNTP-Posting-Host | 93.38.253.7 |
| X-Complaints-To | newsmaster@fastweb.it |
| X-Trace | tornado.fastwebnet.it 1462785241 93.38.253.7 (Mon, 09 May 2016 11:14:01 CEST) |
| NNTP-Posting-Date | Mon, 09 May 2016 11:14:01 CEST |
| Xref | csiph.com it.comp.lang.python:7657 |
Show key headers only | View raw
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
Back to it.comp.lang.python | Previous | Next — Next in thread | Find similar
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