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


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

Iterazione Python

Newsgroups it.comp.lang.python
From Smith <smith@smith.it>
Subject Iterazione Python
Message-ID <tW1Xy.44957$pt.24847@tornado.fastwebnet.it> (permalink)
Date 2016-05-06 16:32 +0200

Show all headers | View raw


Ciao a tutti,
vorrei sapere perchè questo script non funziona:

numbers = [1,2,3,4,5]
letters = ["A", "B", "C"]

for x,j in map(None,numbers,letters):
     print(x,j)

Mi restituisce questo messaggio d'errore:

     for x,j in map(None,numbers,letters):
TypeError: 'NoneType' object is not callable

Grazie

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


Thread

Iterazione Python Smith <smith@smith.it> - 2016-05-06 16:32 +0200
  Re: Iterazione Python Andrea D'Amore <anddam+NOSPAM@brapi.net> - 2016-05-06 17:19 +0200
    Re: Iterazione Python Smith <smith@smith.it> - 2016-05-06 21:54 +0200
      Re: Iterazione Python Andrea D'Amore <anddam+NOSPAM@brapi.net> - 2016-05-06 22:12 +0200
        Re: Iterazione Python Smith <smith@smith.it> - 2016-05-07 21:01 +0200
        Re: Iterazione Python Smith <smith@smith.it> - 2016-05-07 21:03 +0200
        Re: Iterazione Python Smith <smith@smith.it> - 2016-05-08 12:36 +0200

csiph-web