Re: Itertools Python3

2016-08-30 Thread Smith
Il 30/08/2016 12:28, Chris Angelico ha scritto: On Tue, Aug 30, 2016 at 8:24 PM, Smith wrote: I can not write to the file. Can someone help me? Thanks from itertools import product valore = input('Inserisci un valore: ') risultato = product(valore, repeat = 3) with open("file.txt", "w") as re

Re: Itertools Python3

2016-08-30 Thread Chris Angelico
On Tue, Aug 30, 2016 at 8:45 PM, Smith wrote: > Il 30/08/2016 12:28, Chris Angelico ha scritto: >> >> Do you get an exception, possibly from the product() call? When you >> ask for help, copy and paste the entire traceback and error message; >> it's extremely useful information. >> >> I'm pretty s

Re: Itertools Python3

2016-08-30 Thread Smith
Il 30/08/2016 12:28, Chris Angelico ha scritto: Do you get an exception, possibly from the product() call? When you ask for help, copy and paste the entire traceback and error message; it's extremely useful information. I'm pretty sure I know what the problem is here, but I want you to post the

Re: Itertools Python3

2016-08-30 Thread Chris Angelico
On Tue, Aug 30, 2016 at 8:24 PM, Smith wrote: > I can not write to the file. > Can someone help me? > Thanks > > from itertools import product > valore = input('Inserisci un valore: ') > risultato = product(valore, repeat = 3) > with open("file.txt", "w") as result: > for i in risultato: