41a3bed2c8a57b62f41f ha scritto:" - create two tect files, name x.txt and y.txt
- in each file, insert two series of 10 numbers of your
choice
- write a script that reads this numbers and computes
their inner prodution
- finally, put this result into a new file named x_y.txt "
Chi ha scritto questa roba? È tutto sgrammaticato!
41a3bed2c8a57b62f41f ha scritto:testo=open("x_y.txt,"r"")
Cosa significa quella
"r"
? Tra l'altro, non puoi mischiare le virgolette in quel modo: scrivi
'r'
anziché
"r"
.
41a3bed2c8a57b62f41f ha scritto:In quei file di testo ho scritto delle liste cosi[12,13,14,14,12,12,45,56,78,78]
Meglio se scrivi semplicemente i numeri separati da spazi, oppure uno per riga. Cosa sai di come leggere un file di testo?